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:
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
语法
参数 | 说明 | 数据类型 |
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 |
代码实例
The following script executes the ExportToTGD function. TFDM features that intersect TGD features transfer some attribute values to those features.
# ExportToTGD_Example.py
# Description: Exports TFDM metadata to TGD
# Requirements: Esri Defense Mapping solution
# Import arcpy module
import arcpy
arcpy.CheckOutExtension("defense")
# 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)
arcpy.CheckInExtension("defense")