Import From MGCP (Defense Mapping)
Summary
Imports Multinational Geospatial Co-production Program (MGCP) metadata into a Topographic Features Data Management (TFDM) geodatabase.
Usage
MGCP stores metadata in three feature classes: Cell, Subregion, and Source. TFDM stores metadata in the DatasetAreas and CollectionAreas feature classes.
-
The TFDM DatasetAreas features must already exist and be contained by the MGCP Cell to import.
The tool writes attribute values from Cell and Subregion features into the TFDM DatasetAreas feature class. It also inserts some hard-coded or derived values.
DatasetAreas feature class fields list and target valuesTFDM DatasetAreas Field
MGCP Cell or Subregion value
DQS
Cell.CLSTAT
ETS
61
ETZ
Subregion.SVSPCD or Cell.CVSPCD (Subregion has precedence)
HZD
300
MEM
Cell.CCMNT
RCG
Subregion.SORIGA or Cell.CORIGA (Subregion has precedence)
ZI002_CCN
Subregion.SCPYRT or Cell.CCPYRT (Subregion has precedence)
ZI002_CCN
Subregion.SCPYRT or Cell.CCPYRT (Subregion has precedence)
ZI002_CUI
Limited Distribution (limdis)
URI
https://www.mgcp.ws/ + Cell ID derived from the Cell geometry
AHA
Subregion.SACEVL
AVA
Subregion.SALEVL
CID
Subregion.SUBRID
EQC
Subregion.SSCALE
MDE
Subregion.SEDDAT
The tool writes attribute values from the MGCP Source feature class into the TFDM CollectionAreas feature class.
CollectionAreas feature class fields list and target valuesCollectionAreas fields
Value
ZI001_SSY
Source.SOURCE
ZI001_SSN
Source.SOURCE_IDENTIFIER
ZI001_SSD
Source.SOURCE_DATE
Syntax
Parameter | Explanation | Data 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 DatasetAreas features. The tool reads CollectionAreas features from the same workspace that stores in_dataset_areas features. | Feature Layer |
Code Sample
The following script creates MGCP Cell and TFDM DatasetAreas feature layers. It executes the ImportFromMGCP function, using the feature layers as input.
# ImportFromMGCP.py # Description: Imports MGCP metadata into TFDM # Date October 2010 # Import arcpy and the defense mapping toolbox import arcpy arcpy.CheckOutExtension("defense") 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)