ArcGIS Desktop

  • ArcGIS Pro
  • ArcMap

  • My Profile
  • Help
  • Sign Out
ArcGIS Desktop

ArcGIS Online

The mapping platform for your organization

ArcGIS Desktop

A complete professional GIS

ArcGIS Enterprise

GIS in your enterprise

ArcGIS Developers

Tools to build location-aware apps

ArcGIS Solutions

Free template maps and apps for your industry

ArcGIS Marketplace

Get apps and data for your organization

  • Documentation
  • Support
Esri
  • Sign In
user
  • My Profile
  • Sign Out

ArcMap

  • Home
  • Get Started
  • Map
  • Analyze
  • Manage Data
  • Tools
  • Extensions

Edge Source Properties

  • Summary
  • Properties
  • Code sample

Summary

Provides information about edge sources in a network dataset.

Properties

PropertyExplanationData Type
name
(Read Only)

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

String
sourceID
(Read Only)

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

Integer
sourceType
(Read Only)

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

  • EdgeFeature
  • JunctionFeature
  • SystemJunction
  • TurnFeature
  • NetworkSource

String
elementType
(Read Only)

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

  • Edge
  • Junction
  • Turn

String
fromElevationFieldName
(Read Only)

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

String
toElevationFieldName
(Read Only)

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

String
connectivityPolicies
(Read Only)

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

Object
sourceDirections
(Read Only)

The Network Source Directions object. This object can be used to determine directions properties specific to a particular edge source. The sourceDirections property is available only if the network dataset supports directions which can be determined using the supportsDirections property.

Object

Code sample

Edge Source Properties example

Displays information for edge sources in a network dataset.

# Name: NDSAttributeProperties_ex01.py
# Description: Print the information about edge 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 ("------- Edge sources") 

# Get all the edge sources for the network dataset
edgeSources = desc.edgeSources 

if not edgeSources: 
    print " %*s" % (justify, "(No edge sources)")    
    sys.exit(0) 

for edgeSource in edgeSources: 
    print (" %*s: %s" % (justify, "Source Name" , edgeSource.name))
    print (" %*s: %s" % (justify, "Source ID" , str(edgeSource.sourceID))) 
    print (" %*s: %s" % (justify, "Source Type", edgeSource.sourceType))
    print (" %*s: %s" % (justify, "Element Type", edgeSource.elementType))
    print (" %*s: %s" % (justify, "From Elevation Field",
                         edgeSource.fromElevationFieldName))
    print (" %*s: %s" % (justify, "To Elevation Field",
                         edgeSource.toElevationFieldName))
    print(" ")

ArcGIS Desktop

  • Home
  • Documentation
  • Support

ArcGIS

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

About Esri

  • About Us
  • Careers
  • Esri Blog
  • User Conference
  • Developer Summit
Esri
Tell us what you think.
Copyright © 2021 Esri. | Privacy | Legal