Export Topology (Topographic Production)

Краткая информация

Exports a topology from a geodatabase to an .xml file.

The .xml file contains a definition of a topology, including feature class names, topology ranks, topology rules, and cluster tolerance, and can be used by the Import Topology tool to recreate a topology in a new feature dataset.

Использование

  • This tool supports all data models and can be used on any geodatabase topology.

Параметры

ПодписьОписаниеТип данных
Input Topology

An existing topology in a geodatabase. All feature classes that participate in this topology will be listed in the output .xml file.

Topology; Topology Layer
Topology XML Document Location

The folder in which the .xml file will be written.

Folder
Topology XML Document Name

The name of the topology .xml file that will be created by the tool.

String

Производные выходные данные

ПодписьОписаниеТип данных
Output Topology XML Document

Output topology XML file created by exporting topology rules.

File

arcpy.topographic.ExportTopology(topology, location, file_name)
ИмяОписаниеТип данных
topology

An existing topology in a 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

Output topology XML file created by exporting topology rules.

File

Пример кода

ExportTopology example (stand-alone script)

The following script demonstrates how to use the ExportTopology tool to create a new XML definition file from geodatabase topology.

# Name: ExportTopology_sample.py
# Description: Use the Export Topology tool to create a new XML definition file from geodatabase topology 

# Import System Modules
import arcpy

# Check Out Extensions
arcpy.CheckOutExtension('Foundation')

# Setting Local Variables
topology = r'C:\Temp\Test.gdb\Features\Topology'
output_folder = r'C:\Temp'
output_file_name = 'Topology'

# Use the Export Topology tool to create a new XML definition file
arcpy.topographic.ExportTopology(topology, output_folder, output_file_name)

# Check In Extensions
arcpy.CheckInExtension('Foundation')

Параметры среды

Этот инструмент не использует параметры среды геообработки

Информация о лицензиях

  • Basic: Нет
  • Standard: Обязательно Production Mapping
  • Advanced: Обязательно Production Mapping

Связанные разделы