Junction Source (arcpy)

サマリ

Provides information about junction sources in a network dataset.

特性

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

The name of the feature class associated with this network source.

String
sourceID
(読み取り専用)

The unique identifier of this network source within the network dataset.

Integer
sourceType
(読み取り専用)

The type of network source. This property returns the following keywords:

  • EdgeFeature
  • JunctionFeature
  • SystemJunction
  • TurnFeature
  • NetworkSource

String
elementType
(読み取り専用)

Network element type of the network source. This property returns the following keywords:

  • Edge
  • Junction
  • Turn

String
connectivityPolicies
(読み書き)

The network dataset junction Connectivity Policies object. This object can be used to determine connectivity information, such as connectivity policies and connectivity groups, used by the junction sources of the network dataset.

Object
elevationFieldName
(読み取り専用)

The field name in the feature class associated with the given junction feature source that is used as the elevation field when determining connectivity at coincident vertices.

String

コードのサンプル

Junction Source Properties Example

Displays information for junction sources in the network dataset.

# Name: NDSJunctionSourceProperties_ex01.py
# Description: Print the information about the junction 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 ("------- Junction sources") 

#Get all the junction sources for the network dataset
junctions = desc.junctionSources

if not junctions: 
    print " %*s" % (justify, "(No junction sources)")    
    sys.exit(0) 
 
for junction in junctions:
    print (" %*s: %s" % (justify, "Source Name" , junction.name))
    print (" %*s: %s" % (justify, "Source ID" , str(junction.sourceID))) 
    print (" %*s: %s" % (justify, "Source Type", junction.sourceType))
    print (" %*s: %s" % (justify, "Element Type", junction.elementType))
    print (" %*s: %s" % (justify, "Elevation Field",
                         junction.elevationFieldName))
    print(" ")
9/14/2013