Import From GIFD/TGD Metadata (Defense Mapping)
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.
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 values
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
Mapped from SCALE attribute
Mapped from CREATION_DATE attribute
Mapped from ORIGINATOR attribute (if GBR and CAN), else set RCG = 19.
Mapped from COMM_CPYRT_NOTICE attribute
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:
Mapped from ORIG_SOURCE_DATE attribute
Mapped from ORIGINATING_SOURCE
Mapped from Z_VALUE_TYPE
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.
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.
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)