Export To TGD (Defense Mapping)
Exports Topographic Features Data Management (TFDM) DatasetAreas and CollectionAreas attribute values to feature-level metadata in a Theatre Geospatial Database (TGD) geodatabase. TGD features that intersect DatasetAreas and CollectionAreas features are updated with attribute values from the TFDM geodatabase.
The DatasetAreas and CollectionAreas feature classes store metadata, as attribute values, about TFDM features. Export to TGD writes this metadata to multiple features within the TGD geodatabase in a one-to-many relationship: one item of TFDM metadata is written to many TGD features.
Values are written to TGD features that intersect TFDM DatasetAreas and CollectionAreas features. The values are mapped from TFDM to TGD in the following order:
The input TFDM DatasetAreas features. The tool reads CollectionAreas features from the same workspace that stores these features.
The workspace that stores the TGD features.
The following script executes the ExportToTGD function. TFDM features that intersect TGD features transfer some attribute values to those features.
# ExportToTGD.py # Description: Exports TFDM metadata to TGD # Date: October 2010 # Import arcpy module 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 DatasetAreas = "C:\\data\\tfdm.gdb\\LTDS\\DatasetAreas" DatasetArea = "DatasetAreas_Layer" TGD_Workspace = "C:\\data\\TFDM_Metadata_Tool_Data\\Export\\Export_Tactical_3_2.gdb" # Make the TFDM feature layer arcpy.MakeFeatureLayer_management(DatasetAreas, DatasetArea) # Export To TGD arcpy.ExportToTGD_defense(DatasetArea, TGD_Workspace)