Import Topology (Topographic Production)

Zusammenfassung

Creates a geodatabase topology from a definition .xml file generated by the Export Topology tool in the Topographic Production toolbox.

Both this tool and the Export 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.

Verwendung

  • This tool supports all data models, with a properly configured .xml definition file, and can be used on any feature dataset.

Parameter

BeschriftungErläuterungDatentyp
Input 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
Input Topology Definition File

The .xml file that contains the topology definition.

File

Abgeleitete Ausgabe

BeschriftungErläuterungDatentyp
Output Topology

Output topology created by importing topology rules from the topology XML file.

Topology

arcpy.topographic.ImportTopology(in_feature_dataset, topology_definition_file)
NameErläuterungDatentyp
in_feature_dataset

The feature dataset in which the topology will be created. The feature dataset must contain the feature classes listed in the topology_definition_file.

Feature Dataset
topology_definition_file

The .xml file that contains the topology definition.

File

Abgeleitete Ausgabe

NameErläuterungDatentyp
out_topology

Output topology created by importing topology rules from the topology XML file.

Topology

Codebeispiel

ImportTopology example (stand-alone script)

The following Python window script demonstrates how to use the ImportTopology tool to create a new geodatabase topology from an XML definition file.

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

# Import System Modules
import arcpy

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

# Setting Local Variables
feature_dataset = r'C:\Temp\Test.gdb\Features'
topology_definition = r'C:\Temp\Topology.xml'

# Use the Import Topology tool to create a new geodatabase topology
arcpy.topographic.ImportTopology(feature_dataset, topology_definition)

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

Umgebungen

Dieses Werkzeug verwendet keine Geoverarbeitungsumgebungen.

Lizenzinformationen

  • Basic: Nein
  • Standard: Erfordert Production Mapping
  • Advanced: Erfordert Production Mapping

Verwandte Themen