更新子网追踪配置属性
汇总
以下属性是在公共设施网络中使用 Describe 时由 updateSubnetworkTraceConfiguration 对象返回的。
此属性描述子网更新时所使用的追踪配置。
属性
| 属性 | 说明 | 数据类型 |
|---|---|---|
|
conditionBarriers (只读) |
|
Object |
|
diagramTemplateName (只读) |
追踪配置所使用的逻辑示意图模板的名称。 |
String |
|
domainNetworkName (只读) |
域网络的名称。 |
String |
|
filterBarriers (只读) |
|
Object |
|
filterBitsetNetworkAttributeName (只读) |
用于按 bitset 过滤的网络属性的名称。 |
String |
|
filterFunctionBarriers (只读) |
|
Object |
|
filterScope (只读) |
针对特定类别执行的可遍历性 - 例如,交汇点和边、仅交汇点或仅边。 |
String |
|
functionBarriers (只读) |
|
Object |
|
functions (只读) |
|
Object |
|
includeBarriers (只读) |
是否将追踪配置为在追踪结果中包括障碍要素。
|
Boolean |
|
includeContainers (只读) |
是否将追踪配置为在追踪结果中包括容器要素。
|
Boolean |
|
includeContent (只读) |
是否将追踪配置为在追踪结果中包括容器中的内容。
|
Boolean |
|
includeStructures (只读) |
是否将追踪配置为在追踪结果中包括结构要素。
|
Boolean |
|
nearestNeighbor (只读) |
|
Object |
|
outputConditions (只读) |
|
Object |
|
outputFilters (只读) |
|
Object |
|
propagators (只读) |
|
Object |
|
shortestPathNetworkAttributeName (只读) |
用于计算最短路径的网络属性的名称。 |
String |
|
targetTierName (只读) |
开始层所流向的目标层的名称。 |
String |
|
tierName (只读) |
要开始追踪的层的名称。 |
String |
|
traversabilityScope (只读) |
执行的可遍历性 - 例如,交汇点和边、仅交汇点或仅边。 |
String |
|
validateConsistency (只读) |
是否将追踪配置为在追踪结果中验证一致性。
|
Boolean |
代码示例
公共设施网络更新子网追踪配置属性示例(独立脚本)
以下独立 Python 脚本可打印某些公共设施网络属性的报告。
# 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 each domain network in the utility network
for dom in domnets:
print(f"Domain Network Name: {dom.domainNetworkName}")
# For each tier in the domain network
for tier in dom.tiers:
print(f"Tier Name: {tier.name}")
# Update Subnetwork Trace Configuration Properties
print(" -- Update Subnetwork Trace Properties -- ")
ust = tier.updateSubnetworkTraceConfiguration
print(f"Include Containers: {ust.includeContainers}")
print(f"Include Content: {ust.includeContent}")
print(f"Include Structures: {ust.includeStructures}")
print(f"Include Barriers: {ust.includeBarriers}")
print(f"Validate Consistency: {ust.validateConsistency}")
print(f"Validate Locatability: {ust.validateLocatability}")
print(f"Include Isolated: {ust.includeIsolated}")
print(f"Ignore Barriers at Starting Points: {ust.ignoreBarriersAtStartingPoints}")
print(f"Include Up To First Spatial Container: {ust.includeUpToFirstSpatialContainer}")
print(f"Allow Indeterminate Flow: {ust.allowIndeterminateFlow}")
print(f"Domain Network Name: {ust.domainNetworkName}")
print(f"Tier Name: {ust.tierName}")
print(f"Target Tier Name: {ust.targetTierName}")
print(f"Subnetwork Name: {ust.subnetworkName}")
print(f"Diagram Template Name: {ust.diagramTemplateName}")
print(f"Shortest Path Network Attribute Name: {ust.shortestPathNetworkAttributeName}")
print(f"Filter Bitset Network Attribute Name: {ust.filterBitsetNetworkAttributeName}")
print(f"Traversability Scope: {ust.traversabilityScope}")
print(f"Filter Scope: {ust.filterScope} \n")