边源属性

摘要

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

属性

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

assetGroups 对象。此对象可用于检索边源资产组的属性。

Object
assetTypeFieldName
(只读)

边源的资产类型字段名称。

String
objectClassID
(只读)

边源的对象类 ID。

Integer
shapeType
(只读)

边源的形状类型。

String
sourceID
(只读)

边源的源 ID。

Integer
sourceName
(只读)

边源的名称。

String
supportedProperties
(只读)

边源的名称。

String
usesGeometry
(只读)

边源是否使用几何。

Boolean
utilityNetworkFeatureClassUsageType
(只读)

边源的要素类使用类型。

String

代码示例

edgeSource 属性示例(独立脚本)

此独立 Python 脚本是公用设施网络的 edgeSources 属性报告。

'''****************************************************************************
Name:        DescribeUN_EdgeSourceProperties.py
Description: This script reports the edge 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))

    # Edge Source Properties
    for edgeSource in dom.edgeSources:
        print(" -- Edge Source Properties -- ")
        print("Edge Source Id: {0}".format(edgeSource.sourceId))
        print("Object Class ID: {0}".format(edgeSource.objectClassId))
        print("Edge Source Name: {0}".format(edgeSource.sourceName))
        print("Uses Geometry: {0}".format(edgeSource.usesGeometry))
        print("Shape Type: {0} \n".format(edgeSource.shapeType))
        print("Feature Class Usage: {0}".format(edgeSource.utilityNetworkFeatureClassUsageType))
        print("Asset Type Field Name: {0}".format(edgeSource.assetTypeFieldName))
        print("Supported Properties: {0} \n".format(edgeSource.supportedProperties))

        # Asset Group Properties
        for ag in edgeSource.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 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 Terminal Configuration Supported: {0}".format(at.isTerminalConfigurationSupported))
                print("Asset Type Terminal Configuration ID: {0}".format(at.terminalConfigurationID))
                print("Asset Type Linear Connectivity Policy Supported: {0}".format(at.isLinearConnectivityPolicySupported))
                print("Asset Type Connectivity Policy: {0}".format(at.connectivityPolicy))
                print("Asset Type Categories: {0}".format(at.categories))
                print("Asset Type Split Content: {0} \n".format(at.splitContent))

在本主题中