Import From MGCP (Defense Mapping)


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



ImportFromMGCP_defense (in_cell_features, in_dataset_areas)
ParameterExplanationData Type

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

Feature Layer

The input DatasetAreas features. The tool reads CollectionAreas 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 DatasetAreas feature layers. It executes the ImportFromMGCP function, using the feature layers as input.

# Description: Imports MGCP metadata into TFDM
# Date October 2010

# Import arcpy and the defense mapping toolbox
import arcpy
arcpy.ImportToolbox(r'C:\Program Files\ArcGIS\Desktop10.0\ArcToolbox\Toolboxes\Defense Mapping Tools.tbx')

# 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"
MGCP_Cell_features = "Cell_Layer"
TFDM_DatasetArea_features = "DatasetAreas"

# MGCP Cell Feature Layer
arcpy.MakeFeatureLayer_management(Cell, MGCP_Cell_features)

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

# Import MGCP into TFDM
arcpy.ImportFromMGCP_defense(MGCP_Cell_features, TFDM_DatasetArea_features)


This tool does not use any geoprocessing environments

Related Topics

Licensing Information

ArcView: No
ArcEditor: Requires Defense Mapping
ArcInfo: Requires Defense Mapping