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

  • ホーム
  • はじめに
  • マップ
  • 解析
  • データ管理
  • ツール
  • エクステンション

Network Source Directions

  • 概要
  • プロパティ
  • コードのサンプル

概要

The Network Source Directions object provides information used for generating driving directions that are specific to edge sources in the network dataset.

プロパティ

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

The name of the field containing the administrative area information for generating driving directions.

If the administrative area information is not defined for the network dataset, the adminAreaFieldName property will throw an exception.

String
fieldMappings
(読み取り専用)

Returns a list of Network Source Directions Field Mapping objects for this source. If field mappings are not defined for this network source, the fieldMappings property will throw an exception.

Object
landmarkEventSources
(読み取り専用)

Returns a list of Landmark Source objects for this source. If landmark event sources (confirmation landmarks) are not defined for this network source, the landmarkEventSources property will throw an exception.

Object
landmarkManeuverSources
(読み取り専用)

Returns a list of Landmark Source objects for this source. If landmark maneuver sources (turn landmarks) are not defined for this network source, the landmarkManeuverSources property will throw an exception.

Object
streetNameFields
(読み取り専用)

Returns a list of Street Name Field objects for this network source.

Object
shields
(読み取り専用)

Returns a Shields object. This object can be used to determine the shield properties used in driving directions. If the shields information is not defined for the network dataset, the shields property will throw an exception.

Object

コードのサンプル

Network Source Directions Properties Example

Displays directions information specific to edge sources in the network dataset.

# Name: NDSNetworkSourceDirectionProperties_ex01.py
# Description: Print direction settings specific to edge sources in 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")

#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 there are no edge sources in the network dataset, quit.
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  
    #Print the direction information specific to edge source    
    sDir = source.sourceDirections
    # Check if the administrative area information is defined for the network 
    #dataset. Otherwise adminAreaFieldName property throws an exception 
    if hasattr(sDir, "adminAreaFieldName"):    
        print "Administrative area field: " , sDir.AdminAreaFieldName 
    else:
        print "Administrative area field: " , "Not set"

ArcGIS Desktop

  • ホーム
  • ドキュメント
  • サポート

ArcGIS

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

Esri について

  • 会社概要
  • 採用情報
  • Esri ブログ
  • ユーザ カンファレンス
  • デベロッパ サミット
Esri
ご意見・ご感想をお寄せください。
Copyright © 2021 Esri. | プライバシー | リーガル