Import From MGCP (Defense Mapping)

License Level:BasicStandardAdvanced

Summary

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

Usage

Syntax

ImportFromMGCP_defense (in_cell_features, in_dataset_areas)
ParameterExplanationData Type
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

Code Sample

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")

Environments

Related Topics

Licensing Information

ArcGIS for Desktop Basic: No
ArcGIS for Desktop Standard: Requires Defense Mapping
ArcGIS for Desktop Advanced: Requires Defense Mapping
9/2/2013