サマリー
Exports a topology from a geodatabase to an .xml file. The .xml file can be used by the Import Topology tool to create a topology in a feature dataset. Both this tool and the Import Topology tool allow you to share and create topologies within different geodatabases. The .xml file contains a definition of a topology, including feature class names, topology ranks, topology rules, and cluster tolerance.
使用法
This tool supports all data models and can be used on any geodatabase topology.
構文
ExportTopology(topology, location, file_name)
パラメーター | 説明 | データ タイプ |
topology | An existing topology in a Defense Mapping geodatabase. All feature classes that participate in this topology will be listed in the output .xml file. | Topology; Topology Layer |
location | The folder in which the .xml file will be written. | Folder |
file_name | The name of the topology .xml file that will be created by the tool. | String |
派生した出力
名前 | 説明 | データ タイプ |
out_file | File |
コードのサンプル
ExportTopology example (Python window)
The following Python window script demonstrates how to use the ExportTopology tool.
# import os for path functions
import os
# local variables
topology="C:\\data\\MX_GTDS_4_0.gdb\\GTDS\\GTDS_Topology"
path="c:\\data"
outfile="gtdsTopo.xml"
# execute the tool
arcpy.ExportTopology_defense(topology,path,outfile)
# see if the file exists
print os.path.exists(os.path.join(path,outfile))
環境
このツールは、ジオプロセシング環境を使用しません。
ライセンス情報
- ArcGIS Desktop Basic: いいえ
- ArcGIS Desktop Standard: 次のものが必要 Defense Mapping
- ArcGIS Desktop Advanced: 次のものが必要 Defense Mapping