ArcGIS Desktop

  • ArcGIS Pro
  • ArcMap

  • My Profile
  • Hilfe
  • Sign Out
ArcGIS Desktop

ArcGIS Online

Die Mapping-Plattform für Ihre Organisation

ArcGIS Desktop

Ein vollständiges professionelles GIS

ArcGIS Enterprise

GIS in Ihrem Unternehmen

ArcGIS for Developers

Werkzeuge zum Erstellen standortbezogener Apps

ArcGIS Solutions

Kostenlose Karten- und App-Vorlagen für Ihre Branche

ArcGIS Marketplace

Rufen Sie Apps und Daten für Ihre Organisation ab.

  • Dokumentation
  • Support
Esri
  • Anmelden
user
  • Eigenes Profil
  • Abmelden

ArcMap

  • Startseite
  • Erste Schritte
  • Karte
  • Analysieren
  • Verwalten von Daten
  • Werkzeuge
  • Erweiterungen

Network Source

  • Zusammenfassung
  • Eigenschaften
  • Codebeispiel

Zusammenfassung

Provides information about the network sources in the network dataset. Network sources can be of four types; edge sources, junction sources, turn sources, and system junction sources. Use the sourceType property to identify the type of network source.

Based on the type of the network source, the network source object can support additional properties specific to that source type. Edge sources and junction sources supports additonal properties along with the properties supported by the network source object. Turn sources and system junction sources do not support any additional properties.

Eigenschaften

EigenschaftErklärungDatentyp
name
(Nur lesen)

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

String
sourceID
(Nur lesen)

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

Integer
sourceType
(Nur lesen)

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

  • EdgeFeature
  • JunctionFeature
  • SystemJunction
  • TurnFeature
  • NetworkSource

String
elementType
(Nur lesen)

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

  • Edge
  • Junction
  • Turn

String

Codebeispiel

Network Source Properties Example

Displays information for network sources in the network dataset..

# Name: NDSNetworkSourceProperties_ex01.py
# Description: Print the information about the network sources 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 ("------- Network sources") 

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

for source in sources:
    print ("%*s: %s" % (justify, "Source Name" , source.name)) 
    print ("%*s: %s" % (justify, "Source ID" , str(source.sourceID))) 
    print ("%*s: %s" % (justify, "Source Type", source.sourceType))
    print ("%*s: %s" % (justify, "Element Type", source.elementType))
    print (" ")

ArcGIS Desktop

  • Startseite
  • Dokumentation
  • Support

ArcGIS Plattform

  • ArcGIS Online
  • ArcGIS Desktop
  • ArcGIS Enterprise
  • ArcGIS for Developers
  • ArcGIS Solutions
  • ArcGIS Marketplace

Über Esri

  • Über uns
  • Karriere
  • Esri Blog
  • User Conference
  • Developer Summit
Esri
Wir sind an Ihrer Meinung interessiert.
Copyright © 2019 Esri. | Datenschutz | Rechtliches