有效交汇点属性
汇总
下面是在公共设施网络中使用 Describe 时由 validJunctions 对象返回的属性。
属性
| 属性 | 说明 | 数据类型 |
|---|---|---|
|
assetGroupCode (只读) |
有效交汇点的资产组代码。 |
Integer |
|
assetTypes (只读) |
|
Object |
代码示例
公共设施网络有效交汇点属性(独立脚本)
检索有效交汇点对象的 assetTypes 的资产类型代码。
# Describe functions on a Utility Network
UN = "C:\\Projects\\MyProject\\unowner.sde\\Naperville.UNOWNER.Naperville\\Naperville.UNOWNER.Naperville"
d = arcpy.Describe(UN)
# Domain Network properties
domnets = d.domainNetworks
# For each domain network in the utility network
for dom in domnets:
# For each tier in the domain network
for tier in dom.tiers:
# Print the valid junction properties
for vj in tier.validJunctions:
print(" -- Valid Junction Properties -- ")
print("Asset Group Code: {0} \n".format(vj.assetGroupCode))
print(" - Asset Type Properties - ")
for at in vj.assetTypes:
print("Asset Type Code: {0}".format(at.assetTypeCode))