Export To TGD (Defense Mapping)
Summary
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.
Usage
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:
TGD Attribute
TFDM Attribute
ACE
DatasetAreas.AHA
ALE
DatasetAreas.AVA
SCALE
DatasetAreas.EQC
CREATION_DATE
DatasetAreas.MDE
COMMENTS
DatasetAreas.MEM
ORIGINATOR
DatasetAreas.RCG
COMM_CPYRT_NOTICE
DatasetAreas.ZI002_CCN
ORIG_SOURCE_DATE
DatasetAreas.ZI001_SSD
ORIG_SOURCE_INFO
DatasetAreas.ZI001_SSN
ORIGINATING_SOURCE
DatasetAreas.ZI001_SSY
Syntax
Parameter | Explanation | Data Type |
in_dataset_areas |
The input TFDM DatasetAreas features. The tool reads CollectionAreas features from the same workspace that stores these features. | Feature Layer |
in_workspace |
The workspace that stores the TGD features. | Workspace |
Code Sample
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)