Import From GIFD/TGD Metadata (Defense Mapping)
Summary
Imports feature-level metadata from Geospatial Intelligence Feature Database (GIFD) or Theatre Geospatial Database (TGD) geodatabases to the Topographic Features Data Management (TFDM) DatasetAreas and CollectionAreas feature classes.
Usage
DatasetAreas must exist in the TFDM geodatabase.
Before importing GIFD or TGD metadata, GIFD or TGD data should be split along the TFDM DatasetAreas boundaries.
-
DatasetAreas 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 DatasetAreas feature. To do this, statistics are compiled per DatasetAreas feature. For each attribute that is mapped, the majority value from the compiled statistics is used.
List of DatasetAreas attributes updated by GIFD/TGD metadata valuesDatasetAreas attribute
GIFD/TGD value
AHA
25
AVA
If Z_VALUE_TYPE = DTED1 derived OR Z_VALUE_TYPE = DTED2 derived OR Z_VALUE_TYPE = Reflective surface derived OR Z_VALUE_TYPE = Stereo derived OR Z_VALUE_TYPE = TIN derived, set AVA=20 and VDT=1.
else, set AVA = -999999
CPS
4
EQC
Mapped from SCALE attribute
ETS
56
ETX
2.0
HZD
300
MDE
Mapped from CREATION_DATE attribute
MEM
No Information
RCG
Mapped from ORIGINATOR attribute (if GBR and CAN), else set RCG = 19.
ZI002_CCN
Mapped from COMM_CPYRT_NOTICE attribute
ZI002_CUI
2
ZI002_CUX
LIMDIS
New CollectionAreas features are created as subtype 1, SPATIAL_MD_ENT_COLLECT_S.
New CollectionAreas features are created with the following values from the GIFD or TGD geodatabase:
CollectionAreas attribute
GIFD/TGD value
ZI001_SSD
Mapped from ORIG_SOURCE_DATE attribute
ZI001_SSY
Mapped from ORIGINATING_SOURCE
ZI001_VSC
Mapped from Z_VALUE_TYPE
Syntax
Parameter | Explanation | Data Type |
in_workspace |
The workspace that stores the GIFD or TGD features. Feature-level metadata from this workspace will be exported to the TFDM DatasetAreas and CollectionAreas feature classes. | Workspace |
in_dataset_areas | The DatasetAreas features to which the importer will write GIFD or TGD feature-level metadata. The tool also writes feature-level metadata to CollectionAreas features from the same workspace that stores in_dataset_areas features. | Feature Layer |
Code Sample
The following script executes the ImportGIFDTGDMetadata function. This function updates attribute values of TFDM Features that intersect GIFD or TGD features.
# ImportGIFDTGDMetadata.py # Description: Imports GIFD or TGD 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 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)