Skip to main content

更新子网追踪配置属性

汇总

以下属性是在公共设施网络中使用 Describe 时由 updateSubnetworkTraceConfiguration 对象返回的。

此属性描述子网更新时所使用的追踪配置。

了解有关配置追踪的详细信息

属性

属性 说明 数据类型

conditionBarriers

(只读)

conditionBarriers 对象。 该对象可用于检索针对追踪配置所设置的条件障碍的属性。

Object

diagramTemplateName

(只读)

追踪配置所使用的逻辑示意图模板的名称。

String

domainNetworkName

(只读)

域网络的名称。

String

filterBarriers

(只读)

filterBarriers 对象。 该对象可用于检索针对追踪配置所设置的过滤器障碍的属性。

Object

filterBitsetNetworkAttributeName

(只读)

用于按 bitset 过滤的网络属性的名称。

String

filterFunctionBarriers

(只读)

filterFunctionBarriers 对象。 该对象可用于检索针对追踪配置所设置的过滤器函数障碍的属性。

Object

filterScope

(只读)

针对特定类别执行的可遍历性 - 例如,交汇点和边、仅交汇点或仅边。

String

functionBarriers

(只读)

functionBarriers 对象。 该对象可用于检索针对追踪配置所设置的函数障碍的属性。

Object

functions

(只读)

functions 对象。 该对象可用于检索针对追踪配置所设置的函数的属性。

Object

includeBarriers

(只读)

是否将追踪配置为在追踪结果中包括障碍要素。

  • True - 将追踪配置为包括障碍。

  • False - 不会将追踪配置为包括障碍。

Boolean

includeContainers

(只读)

是否将追踪配置为在追踪结果中包括容器要素。

  • True - 将追踪配置为包括容器。

  • False - 不会将追踪配置为包括容器。

Boolean

includeContent

(只读)

是否将追踪配置为在追踪结果中包括容器中的内容。

  • True - 将追踪配置为包括内容。

  • False - 不会将追踪配置为包括内容。

Boolean

includeStructures

(只读)

是否将追踪配置为在追踪结果中包括结构要素。

  • True - 将追踪配置为包括结构。

  • False - 不会将追踪配置为包括结构。

Boolean

nearestNeighbor

(只读)

nearestNeighbor 对象。 该对象可用于检索针对追踪配置所设置的最邻近属性。

Object

outputConditions

(只读)

outputConditions 对象。 该对象可用于检索针对追踪配置所设置的输出条件属性。

Object

outputFilters

(只读)

outputFilters 对象。 该对象可用于检索针对追踪配置所设置的输出过滤器属性。

Object

propagators

(只读)

propagators 对象。 该对象可用于检索针对追踪配置所设置的传播程序的属性。

Object

shortestPathNetworkAttributeName

(只读)

用于计算最短路径的网络属性的名称。

String

targetTierName

(只读)

开始层所流向的目标层的名称。

String

tierName

(只读)

要开始追踪的层的名称。

String

traversabilityScope

(只读)

执行的可遍历性 - 例如,交汇点和边、仅交汇点或仅边。

String

validateConsistency

(只读)

是否将追踪配置为在追踪结果中验证一致性。

  • True - 如果在追踪过程中遇到任何脏区,则返回一个警告。

  • False - 即使在追踪过程中遇到脏区,也不会返回警告。

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")