拓扑属性 (arcpy)

摘要

Describe 函数可返回拓扑的以下属性。同时还支持数据集属性

拓扑可返回“Topology”dataType

属性

属性说明数据类型
clusterTolerance
(只读)

The cluster tolerance of the topology

Double
featureClassNames
(只读)

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

String
maximumGeneratedErrorCount
(只读)

The maximum number of errors to generate when validating a topology

Double
ZClusterTolerance
(只读)

The z cluster tolerance of the topology

Double

代码实例

Topology properties example (stand-alone script)

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)
9/15/2013