Import From MGCP (Defense Mapping)
Récapitulatif
Imports Multinational Geospatial Co-production Program (MGCP) metadata into a Topographic Features Data Management (TFDM) geodatabase.
Utilisation
MGCP stores metadata in three feature classes: Cell, Subregion, and Source. TFDM stores metadata in the DatasetSrf and CollectionSrf feature classes.
-
The TFDM DatasetSrf 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 DatasetSrf feature class. It also inserts some hard-coded or derived values.
DatasetSrf feature class fields list and target valuesTFDM DatasetSrf Field
DatasetSrf value
DQS
Cell.CLSTAT
ETS
mgcpTrd
ETZ
Subregion.SVSPCD or Cell.CVSPCD (Subregion has precedence)
HZD
worldGeodeticSystem1984
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)
AHA
Subregion.SACEVL
AVA
Subregion.SALEVL
EQC
Subregion.SSCALE
MDE
Subregion.SEDDAT
The tool writes attribute values from the MGCP Source feature class into the TFDM CollectionSrf feature class.
CollectionSrf feature class fields list and target valuesCollectionSrf fields
Value
ZI001_SSY if spatial; otherwise, ZI001_NSP
Source.SOURCE
ZI001_SSN if spatial; otherwise, ZI001_NSN
Source.SOURCE_IDENTIFIER
ZI001_SSD if spatial; otherwise, ZI001_NSD
Source.SOURCE_DATE
Syntaxe
Paramètre | Explication | Type 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
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")