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

  • 概要
  • ディスカッション
  • プロパティ
  • コードのサンプル

概要

The Network Dataset Shields Description object provides additional shields information which is used to enhance the direction information when the streets have multiple street names.

ディスカッション

The shieldTypeX and shieldDescriptionX properties are dynamic. This means that the total number of properties supported by the shields description object depends on the descriptionCount property. For example, if the value of the descriptionCount property is 2, then the shields description object will support shieldType0, shieldDescription0, shieldType1, and shieldDescription1 properties.

プロパティ

プロパティ説明データ タイプ
shieldTypeX
(読み取り専用)

The shield type for a particular shield (indicated by X)

Integer
shieldDescriptionX
(読み取り専用)

The shield description for a particular shield (indicated by X)

Integer

コードのサンプル

Shields Description object example

Display the shields description information for each network source.

# 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. | プライバシー | リーガル