System Junction Source

Resumen

Provides information about system junction sources in a network dataset.

Propiedades

PropiedadExplicaciónTipo de datos
name
(Sólo lectura)

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

String
sourceID
(Sólo lectura)

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

Integer
sourceType
(Sólo lectura)

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

  • EdgeFeature
  • JunctionFeature
  • SystemJunction
  • TurnFeature
  • NetworkSource

String
elementType
(Sólo lectura)

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

  • Edge
  • Junction
  • Turn

String
elevationFieldName
(Sólo lectura)

The field name that is used as the elevation field when determining connectivity at coincident vertices.

String

Ejemplo de código

System Junction Source Properties Example

Displays information for system junction sources in the network dataset.

# Name: NDSSystemJunctionSourceProperties_ex01.py
# Description: Print the information about the system junction sources 
#              defined for the network dataset

import arcpy
import sys

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

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

justify = 35
print ("------- System junction source")

#SDC network datasets do not have system junction source.
networktype = desc.networkType 
if networktype.lower() == "sdc": 
    print ("%*s" % (justify, "(No system junction source)")) 
    sys.exit(0)

#Get the system junction source for the network dataset.
sjSource = desc.systemJunctionSource 
if not sjSource: 
    print ("%*s" % (justify, "(No system junction sources)")) 
    sys.exit(0) 

print ("%*s: %s" % (justify, "Source Name" , sjSource.name)) 
print ("%*s: %s" % (justify, "Source ID" , str(sjSource.sourceID))) 
print ("%*s: %s" % (justify, "Source Type", sjSource.sourceType))
print ("%*s: %s" % (justify, "Element Type", sjSource.elementType))
print (" %*s: %s" % (justify, "Elevation Field",sjSource.elevationFieldName))
print (" ")


7/10/2012