几何网络属性 (arcpy)

摘要

Describe 函数可返回几何网络的以下属性。同时还支持数据集属性

几何网络可返回“GeometricNetwork”dataType

属性

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

A Python List of the feature classes participating in the Geometric Network

String
networkType
(只读)

The type of associate logical network

  • StreetNetwork
  • UtilityNetwork
String
orphanJunctionFeatureClassName
(只读)

The name of the feature class that contains the Orphan Junction features

String

代码实例

Geometric Network properties example (stand-alone script)

The following stand-alone script displays properties for a geometric network.

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
5/10/2014