Import From MGCP (Defense Mapping)

Niveau de licence :BasicStandardAdvanced

Récapitulatif

Imports Multinational Geospatial Co-production Program (MGCP) metadata into a Topographic Features Data Management (TFDM) geodatabase.

Utilisation

Syntaxe

ImportFromMGCP_defense (in_cell_features, in_dataset_areas)
ParamètreExplicationType de données
in_cell_features

The input MGCP Cell features. The tool reads Subregion and Source features from the same workspace that stores in_cell_features.

Feature Layer
in_dataset_areas

The input DatasetSrf features. The tool reads CollectionSrf features from the same workspace that stores in_dataset_areas features.

Feature Layer

Exemple de code

ImportFromMGCP example (stand-alone Python script)

The following script creates MGCP Cell and TFDM DatasetSrf feature layers. It executes the ImportFromMGCP function, using the feature layers as input.

# ImportFromMGCP_Example.py
# Description: Imports MGCP metadata into TFDM
# Requirements: Defense Mapping extension

# Import arcpy
import arcpy
arcpy.CheckOutExtension("defense")

# variables for data paths and feature layers
cell = "C:/data/TFDM_Metadata_Tool_Data/Import/Import_MX_MGCP_TRD3.gdb/MGCP_Metadata/Cell"
DatasetAreas = "C:/data/tfdm.gdb/LTDS/DatasetAreas"
mgcpCellFeatures = "Cell_Layer"
tfdmDatasetareaFeatures = "DatasetAreas"

# MGCP Cell Feature Layer
arcpy.MakeFeatureLayer_management(cell, mgcpCellFeatures)

# TFDM DatasetArea feature layer
arcpy.MakeFeatureLayer_management(DatasetAreas, tfdmDatasetareaFeatures)

# Import MGCP into TFDM
arcpy.ImportFromMGCP_defense(mgcpCellFeatures, tfdmDatasetareaFeatures)

arcpy.CheckInExtension("defense")

Environnements

Thèmes connexes

Informations de licence

ArcGIS for Desktop Basic: Annuler
ArcGIS for Desktop Standard: Requis Defense Mapping
ArcGIS for Desktop Advanced: Requis Defense Mapping
4/26/2014