描述
以下属性是在公共设施网络中使用 junctionSources 时由 Describe 对象返回的。
属性
属性 | 说明 | 数据类型 |
assetGroups (只读) | assetGroups 对象。此对象可用于检索交汇点源资产组的属性。 | Object |
assetTypeFieldName (只读) | 交汇点源的资产类型字段名称。 | String |
objectClassID (只读) | 交汇点源的对象类 ID。 | Integer |
shapeType (只读) | 交汇点源的形状类型。 | String |
sourceID (只读) | 交汇点源的源 ID。 | Integer |
sourceName (只读) | 交汇点源的名称。 | String |
supportedProperties (只读) | 交汇点源的支持属性。 | String |
usesGeometry (只读) | 交汇点源是否使用几何。 | Boolean |
utilityNetworkFeatureClassUsageType (只读) | 交汇点源的要素类使用类型。 | String |
代码示例
以下独立 Python 脚本是一份 junctionSources 属性报告。
'''****************************************************************************
Name: DescribeUN_JunctionSourceProperties.py
Description: This script reports the junction source properties of a utility network
Created by: Esri
****************************************************************************'''
# Import required modules
import arcpy
# 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 dom in domnets:
print("*** - Domain Network properties - ***")
print("Domain Network Creation Time: {0}".format(dom.creationTime))
print("Domain Network Release Number: {0}".format(dom.releaseNumber))
print("Domain Network is Structure Network: {0}".format(dom.isStructureNetwork))
print("Domain Network ID: {0}".format(dom.domainNetworkId))
print("Domain Network Name: {0}".format(dom.domainNetworkName))
print("Domain Network Alias Name: {0}".format(dom.domainNetworkAliasName))
print("Domain Network Subnetwork Table Name: {0}".format(dom.subnetworkTableName))
print("Domain Network Subnetwork Label Field Name: {0}".format(dom.subnetworkLabelFieldName))
print("Domain Network Tier Definition: {0}".format(dom.tierDefinition))
print("Domain Network Subnetwork Controller Type: {0} \n".format(dom.subnetworkControllerType))
# Junction Source Properties
for jSource in dom.junctionSources:
print(" -- Junction Source Properties -- ")
print("Edge Source Id: {0}".format(jSource.sourceId))
print("Object Class ID: {0}".format(jSource.objectClassId))
print("Edge Source Name: {0}".format(jSource.sourceName))
print("Uses Geometry: {0}".format(jSource.usesGeometry))
print("Shape Type: {0} \n".format(jSource.shapeType))
print("Feature Class Usage: {0}".format(jSource.utilityNetworkFeatureClassUsageType))
print("Asset Type Field Name: {0}".format(jSource.assetTypeFieldName))
print("Supported Properties: {0} \n".format(jSource.supportedProperties))
# Asset Group Properties
for ag in jSource.assetGroups:
print(" - Asset Group Properties - ")
print("Asset Group Code: {0}".format(ag.assetGroupCode))
print("Asset Group Name: {0} \n".format(ag.assetGroupName))
# Asset Type Properties
for at in ag.assetTypes:
print(" - Asset Type Properties - ")
print("Asset Type Code: {0}".format(at.assetTypeCode))
print("Asset Type Name: {0}".format(at.assetTypeName))
print("Asset Type Terminal Configuration Id: {0}".format(at.terminalConfigurationId))
print("Asset Type Containment View Scale: {0}".format(at.containmentViewScale))
print("Asset Type Association Delete Type: {0}".format(at.associationDeleteType))
print("Asset Type Association Role Type: {0}".format(at.associationRoleType))
print("Asset Type Categories: {0} \n".format(at.categories))