Topology properties

Synthèse

The Describe function returns the following properties for topologies. The Dataset property group is also supported.

For a topology, the Describe dataType property returns a value of "Topology".

Propriétés

PropriétéExplicationType de données
clusterTolerance
(Lecture seule)

The cluster tolerance of the topology.

Double
featureClassNames
(Lecture seule)

A Python list containing the names of the feature classes participating in the topology.

String
maximumGeneratedErrorCount
(Lecture seule)

The maximum number of errors to generate when validating a topology.

Double
ZClusterTolerance
(Lecture seule)

The z cluster tolerance of the topology.

Double

Exemple de code

Topology properties example

The following stand-alone script displays properties for a topology:

import arcpy

# Create a Describe object from a topology.
#
desc = arcpy.Describe("C:/data/moad.gdb/East/ParkZones_topology")

# Print some topology properties
#
print("%-27s %s" % ("ClusterTolerance:", desc.clusterTolerance))
print("%-27s %s" % ("ZClusterTolerance:", desc.ZClusterTolerance))
print("%-27s %s" % ("FeatureClassNames:", desc.featureClassNames))
print("%-27s %s" % ("MaximumGeneratedErrorCount:", desc.maximumGeneratedErrorCount))