Import From GIFD/TGD (Defense Mapping)
Récapitulatif
Imports feature-level metadata from Geospatial Intelligence Feature Database (GIFD) or Theatre Geospatial Database (TGD) geodatabases to the Topographic Features Data Management (TFDM) DatasetSrf and CollectionSrf feature classes.
Utilisation
DatasetSrf must exist in the TFDM geodatabase.
Before importing GIFD or TGD metadata, GIFD or TGD data should be split along the TFDM DatasetSrf boundaries.
-
DatasetSrf features are updated based on the GIFD or TGD features that they contain. All feature classes in the GIFD or TGD data model have common metadata attributes. Some of the metadata values are hard-coded and some are mapped. For the mapped attributes, many GIFD or TGD values need to be considered for mapping to a single value in a DatasetSrf feature. To do this, statistics are compiled per DatasetSrf feature. For each attribute that is mapped, the majority value from the compiled statistics is used.
List of DatasetSrf attributes updated by GIFD/TGD metadata valuesDatasetSrf attribute
DatasetSrf value
AHA
Mapped from GIFD/TGD ACE attribute (Value is converted from centimeters (GIFD/TGD) to meters (LTDS))
AVA
Mapped from GIFD/TGD ALE attribute (Value is converted from centimeters (GIFD/TGD) to meters (LTDS))
CPS
fixedOr25
EQC
Mapped from GIFD/TGD SCALE attribute; 50000 = scale50K, 100000 = scale100K, 250000 = scale250K, all other values = noInformation
HZD
worldGeodeticSystem1984
MDE
Mapped from GIFD/TGD CREATION_DATE attribute
RCG
Mapped from GIFD/TGD ORIGINATOR attribute; GBR = defenceGeoCentreIntColGrp, CAN = mapChartEstablishment, USA or NGA = usNationalGeoIntelAgency, all other nonnull values = other with the actual value written to OTH field
ZI002_CCN
Mapped from GIFD/TGD COMM_CPYRT_NOTICE attribute
New CollectionSrf features are created with the following values from the GIFD or TGD geodatabase:
CollectionSrf attribute
CollectionSrf value
ZI001_SSD if spatial; otherwise, ZI001_NSD
Mapped from GIFD/TGD UPDATE_SOURCE_DATE or ORIG_SOURCE_DATE attribute
ZI001_SSY if spatial; otherwise, ZI001_NSP
Mapped from GIFD/TGD UPDATE_SOURCE or ORIGINATING_SOURCE
ZI001_VSC (spatial only)
Mapped from GIFD/TGD Z_VALUE_TYPE attribute
Syntaxe
Paramètre | Explication | Type de données |
in_workspace |
The workspace that stores the GIFD or TGD features. Feature-level metadata from this workspace will be exported to the TFDM DatasetSrf and CollectionSrf feature classes. | Workspace |
in_dataset_areas | The DatasetSrf features to which the importer will write GIFD or TGD feature-level metadata. The tool also writes feature-level metadata to CollectionSrf features from the same workspace that stores in_dataset_areas features. | Feature Layer |
Exemple de code
The following script executes the ImportGIFDTGDMetadata function. This function updates attribute values of TFDM Features that intersect GIFD or TGD features.
# ImportGIFDTGDMetadata_Example.py
# Description: Imports GIFD or TGD metadata into TFDM
# Requirements: Defense Mapping extension
# Import arcpy
import arcpy
arcpy.CheckOutExtension("defense")
# variables for the TFDM feature layer and workspace
TGD_workspace = "C:\\data\\TFDM_Metadata_Tool_Data\\Export\\Export_Tactical_3_2.gdb"
DatasetAreas = "C:\\data\\tfdm.gdb\\LTDS\\DatasetAreas"
DatasetAreasLayer = "DatasetAreas"
# Make the TFDM feature layer
arcpy.MakeFeatureLayer_management(DatasetAreas, DatasetAreasLayer)
# Import GIFD/TGD Metadata
arcpy.ImportGIFDTGDMetadata_defense(TGD_workspace, DatasetAreasLayer)
arcpy.CheckInExtension("defense")