属性
属性 | 说明 | 数据类型 |
featureClassNames (只读) | 参与几何网络的要素类的 Python 列表。 | String |
networkType (只读) | 相关逻辑网络的类型
| String |
orphanJunctionFeatureClassName (只读) | 包含独立交汇点要素的要素类名称 | String |
代码示例
以下独立脚本显示了几何网络的属性。
import arcpy
# Create a Describe object from the geometric network.
#
desc = arcpy.Describe("C:/data/wellingham.gdb/water/water_Net")
# Print some geometric network properties
#
print("NetworkType: " + desc.networkType)
print("OrphanJunctionFeatureClassName: " + \
desc.orphanJunctionFeatureClassName)
print("Feature Class Names:")
for fcname in desc.featureClassNames:
print(" " + fcname)