ArcGIS Desktop

  • 文档
  • 支持

  • My Profile
  • 帮助
  • Sign Out
ArcGIS Desktop

ArcGIS Online

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

ArcGIS Desktop

全面的专业性 GIS

ArcGIS Enterprise

面向企业的 GIS

ArcGIS for Developers

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

ArcGIS Solutions

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

ArcGIS Marketplace

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

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

ArcMap

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

Network Directions

  • 摘要
  • 属性
  • 代码示例

摘要

网络数据集的网络方向对象提供了有关网络数据集级别的方向设置信息,例如用于生成方向的输出长度单位或长度属性。

属性

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

用于报告行驶距离的网络属性的名称。

String
timeAttributeName
(只读)

用于报告行驶时间的网络属性的名称。

String
roadClassAttributeName
(只读)

用于道路分类的网络属性的名称。

String
defaultOutputLengthUnits
(只读)

在报告行驶方向上的距离时会用到的默认长度单位。

String
signpostFeatureClassName
(只读)

包含路标的要素类名称。

String
signpostStreetsTableName
(只读)

包含路标街道参考的索引表名称。

String

代码示例

网络方向属性示例

显示网络数据集方向信息的摘要。

# Name: NDSDirectionProperties_ex01.py
# Description: Print direction setting for the network dataset.

import arcpy
import sys

# Set the workspace
arcpy.env.workspace = "C:/Data/SanFrancisco.gdb/Transportation"

# Create Describe object for the network dataset
desc = arcpy.Describe("Streets_ND")

#Get the direction object
if desc.supportsDirections:
    direction = desc.directions
else:
    #If the directions are not set for the network dataset, exit 
    print "No direction information"
    sys.exit() 

print "Direction Information ----" 
print "Length attribute name: " , direction.lengthAttributeName 
print "Time attribute name: " , direction.timeAttributeName 
print "Road Class attribute name: " , direction.roadClassAttributeName 
print "Default Output Length Units: " , direction.defaultOutputLengthUnits 
print "Signpost Feature Class: " , direction.signPostFeatureClassName 
print "Signpost Streets Table: " , direction.signpostStreetsTableName

ArcGIS Desktop

  • 主页
  • 文档
  • 支持

ArcGIS 平台

  • ArcGIS Online
  • ArcGIS Desktop
  • ArcGIS Enterprise
  • ArcGIS for Developers
  • ArcGIS Solutions
  • ArcGIS Marketplace

关于 Esri

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