ArcGIS Desktop

  • ArcGIS Pro
  • ArcMap

  • My Profile
  • 帮助
  • Sign Out
ArcGIS Desktop

ArcGIS Online

专为贵组织打造的制图平台

ArcGIS Desktop

全面的专业性 GIS

ArcGIS Enterprise

面向企业的 GIS

ArcGIS Developers

用于构建位置感知应用程序的工具

ArcGIS Solutions

适用于行业的免费模板地图和应用程序

ArcGIS Marketplace

获取适用于组织的应用程序和数据

  • 文档
  • 支持
Esri
  • 登录
user
  • 我的个人资料
  • 登出

ArcMap

  • 主页
  • 入门
  • 地图
  • 分析
  • 管理数据
  • 工具
  • 扩展模块

Edge Source Properties

  • 描述
  • 属性
  • 代码示例

描述

提供有关网络数据集中边源的信息。

属性

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

与该网络源相关的要素类名称。

String
sourceID
(只读)

网络数据集内此网络源的唯一标识符。

Integer
sourceType
(只读)

网络源类型。此属性返回以下关键字:

  • EdgeFeature
  • JunctionFeature
  • SystemJunction
  • TurnFeature
  • NetworkSource

String
elementType
(只读)

网络源的网络元素类型。此属性返回以下关键字:

  • 边
  • 交汇点
  • 转弯

String
fromElevationFieldName
(只读)

与给定边要素源有关的要素类字段名称,当确定重合端点的连通性时交汇点要素源将用作自高程字段。

String
toElevationFieldName
(只读)

与给定边要素源有关的要素类字段名称,当确定重合端点的连通性时交汇点要素源将用作至高程字段。

String
connectivityPolicies
(只读)

网络数据集边连通性策略对象。该对象可用于确定连通性信息(例如连通性策略和连通性组),以供网络数据集的边源使用。

Object
sourceDirections
(只读)

网络源方向对象。此对象可用于确定特定于特定边源的方向属性。仅当网络数据集支持可使用 supportsDirections 属性确定的方向时,sourceDirections 属性才可用。

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

ArcGIS Desktop

  • 主页
  • 文档
  • 支持

ArcGIS

  • ArcGIS Online
  • ArcGIS Desktop
  • ArcGIS Enterprise
  • ArcGIS
  • ArcGIS Developer
  • ArcGIS Solutions
  • ArcGIS Marketplace

关于 Esri

  • 关于我们
  • 招贤纳士
  • Esri 博客
  • 用户大会
  • 开发者峰会
Esri
分享您的想法。
Copyright © 2021 Esri. | 隐私政策 | 法律声明