Skip to main content

宗地结构属性

汇总

Describe 函数将返回宗地结构的以下属性。 还支持 数据集 属性组。

对于宗地结构, Describe dataType 属性将返回 "DEParcelDataset" 的值。

Describe 函数也适用于宗地结构图层。

宗地结构用于管理土地记录和宗地数据网络。

了解有关宗地结构的详细信息

属性

属性 说明 数据类型

connectionsFeatureClass

(只读)

与宗地结构关联的 Connections 要素类的 Describe 对象。

Describe

parcelTypeNames

(只读)

返回与宗地结构关联的宗地类型名称列表。

List

parcelTypes

(只读)

返回与宗地结构关联的宗地类型对象列表。 每个宗地类型对象都是一个包含四个元素的列表:

  • 宗地类型的名称

  • 宗地类型面要素类的名称

  • 宗地类型线要素类的名称

  • 如果宗地类型是大型管理宗地,则为 True

List

pointsFeatureClass

(只读)

与宗地结构关联的 Points 要素类的 Describe 对象。

Describe

recordsFeatureClass

(只读)

与宗地结构关联的 Records 要素类的 Describe 对象。

Describe

topology

(只读)

与宗地结构关联的拓扑的 Describe 对象。

Describe

topologyEnabled

(只读)

返回是否启用 宗地拓扑

Boolean

AdjustmentPointsFeatureClass

(只读)

与宗地结构关联的 AdjustmentPoints 要素类的 Describe 对象。

Describe

AdjustmentLinesFeatureClass

(只读)

与宗地结构关联的 AdjustmentLines 要素类的 Describe 对象。

Describe

AdjustmentVectorsFeatureClass

(只读)

与宗地结构关联的 AdjustmentVectors 要素类的 Describe 对象。

Describe

version

(只读)

返回 Parcel Fabric 版本

Integer

代码示例

宗地结构属性示例

以下独立脚本用于打印宗地类型名称以及与宗地结构关联的其他要素类。 还用于打印与宗地结构关联的拓扑名称。

import arcpy

# Create a Describe object from the parcel fabric dataset
desc = arcpy.Describe("C:/Data/Parcels.gdb/County/ParcelFabric")

# Print parcel type names associated with the parcel fabric
for p in desc.parcelTypeNames:
    print("Parcel type: " + p)

# Print parcel type lists
for p in desc.parcelTypes:
    print(p)

# Print the name for the Lots parcel type
for i in desc.parcelTypes:
    if i[0] == 'Lot':
        print(i[0])

# Print topology name associated with the parcel fabric
print("topology: " + desc.topology.name)

# Print the name of the parcel fabric records feature class
print("Records: " + desc.recordsFeatureClass.name)

# Print the names of the adjustment feature classes
print("adjustment points: " + desc.AdjustmentPointsFeatureClass.name)
print("adjustment lines: " + desc.AdjustmentLinesFeatureClass.name)
print("adjustment vectors: " + desc.AdjustmentVectorsFeatureClass.name)