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

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

Shields Description

  • 描述
  • 讨论
  • 属性
  • 代码示例

描述

网络数据集的盾形路牌符号描述对象将提供盾形路牌符号的其他信息,当街道包含多个街道名称时,该信息用于增强方向信息。

讨论

shieldTypeX 和 shieldDescriptionX 属性为动态属性。也就是说,盾形路牌符号描述对象支持的属性总数取决于 descriptionCount 属性。例如,如果 descriptionCount 属性值为 2,则盾形路牌符号描述对象将支持 shieldType0、shieldDescription0、shieldType1 和 shieldDescription1 属性。

属性

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

特定盾形路牌符号的盾形路牌符号类型(由 X 表示)

Integer
shieldDescriptionX
(只读)

特定盾形路牌符号的盾形路牌符号描述(由 X 表示)

Integer

代码示例

盾形路牌符号描述对象示例

显示每个网络源的盾形路牌符号描述信息。

# Name: NDSShieldsDescriptionProperties_ex01.py
# Description: Print additional information about directions shields for each
#              edge source

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

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

print "Source Direction Information ----" 

# Get all the edge sources 
sources = desc.edgeSources 

if not sources:
    print "No edge sources"
    sys.exit() 
#Loop through all the edge sources
for source in sources:  
    print "--------------------" 
    print "Name: " , source.name 
    print "Source ID: " , source.sourceID  
    #Get the direction information specific to edge source    
    sDir = source.sourceDirections
    #Get the shields for each source
    shields = sDir.shields 
    if shields:  
        print "----Shields description"
        print "Description count: " , shields.descriptionCount
        sDesc = shields.description 
        if sDesc: 
            for i in range(0, shields.descriptionCount): 
                shieldType = getattr(sDesc,"shieldType" + str(i)) 
                sheildDesc = getattr(sDesc, "shieldDescription" + str(i)) 
                print "Type: " , shieldType 
                print "Description: " , sheildDesc 
    else: 
        print "(No shield information)"

ArcGIS Desktop

  • 主页
  • 文档
  • 支持

ArcGIS

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

关于 Esri

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