摘要
提供有关网络数据集中边源的信息。
属性
属性 | 说明 | 数据类型 |
name (只读) | 与该网络源相关的要素类名称。 | String |
sourceID (只读) | 网络数据集内此网络源的唯一标识符。 | Integer |
sourceType (只读) | 网络源类型。此属性返回以下关键字:
| String |
elementType (只读) | 网络源的网络元素类型。此属性返回以下关键字:
| String |
fromElevationFieldName (只读) | The field name in the feature class associated with the given edge feature source that is used as the from elevation field when determining connectivity at coincident end vertices. | String |
toElevationFieldName (只读) | The field name in the feature class associated with the given edge feature source that is used as the to elevation field when determining connectivity at coincident end vertices. | String |
connectivityPolicies (只读) | The network dataset edge Connectivity Policies object. This object can be used to determine connectivity information, such as connectivity policies and connectivity groups, used by the edge sources of the network dataset. | Object |
sourceDirections (只读) | The Network Source Directions object. This object can be used to determine directions properties specific to a particular edge source. The sourceDirections property is available only if the network dataset supports directions which can be determined using the supportsDirections property. | Object |
代码示例
边源属性示例
显示网络数据集中边源的信息。
# Name: NDSAttributeProperties_ex01.py
# Description: Print the information about edge sources defined for the
# network dataset
import arcpy
import sys
# Set workspace
arcpy.env.workspace = "C:/Data/Paris.gdb/Transportation"
# Create a Describe object from the network dataset
desc = arcpy.Describe("ParisMultimodal_ND")
justify = 35
print ("------- Edge sources")
# Get all the edge sources for the network dataset
edgeSources = desc.edgeSources
if not edgeSources:
print " %*s" % (justify, "(No edge sources)")
sys.exit(0)
for edgeSource in edgeSources:
print (" %*s: %s" % (justify, "Source Name" , edgeSource.name))
print (" %*s: %s" % (justify, "Source ID" , str(edgeSource.sourceID)))
print (" %*s: %s" % (justify, "Source Type", edgeSource.sourceType))
print (" %*s: %s" % (justify, "Element Type", edgeSource.elementType))
print (" %*s: %s" % (justify, "From Elevation Field",
edgeSource.fromElevationFieldName))
print (" %*s: %s" % (justify, "To Elevation Field",
edgeSource.toElevationFieldName))
print(" ")