Import Topology (Defense Mapping)

许可等级:BasicStandardAdvanced

摘要

Creates a geodatabase topology from a definition .xml file. Use the Esri Defense Mapping solution's Export Topology tool to create the .xml file. Both this tool and the Export Topology tool allow you to share and create topologies within different Defense Mapping data models. The .xml file contains a definition of a topology, including feature class names and topology ranks and weights.

用法

语法

ImportTopology_defense (in_feature_dataset, topology_definition_file)
参数说明数据类型
in_feature_dataset

The feature dataset in which the topology will be created. The feature dataset must contain the feature classes listed in the Input Topology Definition File.

Feature Dataset
topology_definition_file

The .xml file that contains the topology definition.

File

代码实例

ImportTopology example (Python window)

The following Python window script demonstrates how to use the ImportTopology tool.

# Local variables
featuredataset="C:\\data\\MX_GTDS_4_0.gdb\\GTDS"
topologyfile="C:\\data\\gtdsTopo.xml"

# execute the tool
arcpy.ImportTopology_defense(featuredataset,topologyfile)

# print out the topology name
arcpy.env.workspace=featuredataset
for t in arcpy.ListDatasets("*","Topology"):
     print t

环境

相关主题

许可信息

ArcGIS for Desktop Basic: 否
ArcGIS for Desktop Standard: 需要 Defense Mapping
ArcGIS for Desktop Advanced: 需要 Defense Mapping
4/27/2014