Coverage 属性

描述

Describe 函数可返回 Coverage 的以下属性。还支持数据集属性

Coverage 返回 "Coverage"dataType

属性

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

容差是一个属性集,其中包括:

  • fuzzy
  • dangle
  • ticMatch
  • edit
  • nodeSnap
  • weed
  • grain
  • snap
Object

代码示例

Coverage 属性示例(独立脚本)

以下独立脚本显示了 coverage 的容差属性。

import arcpy

# Create a describe object from a coverage
desc = arcpy.Describe("C:/data/tongass1")

# Get the tolerances property set from the describe object
tolProps = desc.tolerances

# Print all eight tolerance properties
print("Tolerances")
print("==========")
print("%-10s %s" % ("fuzzy:", tolProps.fuzzy))
print("%-10s %s" % ("dangle:", tolProps.dangle))
print("%-10s %s" % ("ticMatch:", tolProps.ticMatch))
print("%-10s %s" % ("edit:", tolProps.edit))
print("%-10s %s" % ("nodeSnap:", tolProps.nodeSnap))
print("%-10s %s" % ("weed:", tolProps.weed))
print("%-10s %s" % ("grain:", tolProps.grain))
print("%-10s %s" % ("snap:", tolProps.snap))

在本主题中