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

Syntax

ExportToTGD_defense (in_dataset_areas, in_workspace)
ParameterExplanationData 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

ExportToTGD example (stand-alone Python script)

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)

Environments

This tool does not use any geoprocessing environments

Related Topics

Licensing Information

ArcView: No
ArcEditor: Requires Defense Mapping
ArcInfo: Requires Defense Mapping

12/20/2012