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 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

GenerateDirectionsFeatures

  • Zusammenfassung
  • Auswertung
  • Syntax
  • Codebeispiel

Zusammenfassung

Creates a feature class of route lines on the map and corresponding text directions generated by solving a network analysis layer. The output can be modified using the StreetDirectionProperties object of the network analysis layer.

Auswertung

The Network Analyst Route, Vehicle Routing Problem, and Closest Facility solvers produce on-street routes as output and offer the option of creating turn-by-turn text directions describing those routes. GenerateDirectionsFeatures allows you to produce those text directions as a feature class that pairs each piece of the text direction with a corresponding line feature on the map.

You can modify the output of the directions, such as the language, style, and units, by using the StreetDirectionProperties settings on the network analysis layer.

Directions can only be generated from network analysis layers of type route, vehicle routing problem, or closest facility because only these layer types support routes and directions. Additionally, the network dataset used by the analysis layer must be configured for directions.

Syntax

GenerateDirectionsFeatures (network_analyst_layer, {catalog_path}, {schema_only}, {configuration_keyword})
ParameterErklärungDatentyp
network_analyst_layer

A variable that references a layer object obtained from a network analysis layer. It can be derived from existing layers in a map document or by specifying the catalog path to the network analysis layer file as an argument to the Layer class. The isNetworkAnalystLayer property on the Layer object can be used to identify whether a given layer object is a network analysis layer. The analysis layer solver type must be route, vehicle routing problem, or closest facility because directions support is required. Also, the network dataset used by the analysis layer must be configured for directions.

Layer
catalog_path

The catalog path to the output directions feature class.

(Der Standardwert ist in_memory\Directions)

String
schema_only

Indicates whether to only generate an empty directions feature class or to also populate it with direction features.

(Der Standardwert ist False)

Boolean
configuration_keyword

The configuration keyword of the output directions feature class.

(Der Standardwert ist None)

String

Rückgabewert

DatentypErklärung
String

The catalog path to the output directions feature class.

Codebeispiel

GenerateDirectionsFeatures example (workflow)

Gets a route layer object and generates directions from it.

#Get the route layer object from a layer named "Route" in
#the table of contents
RouteLayer = arcpy.mapping.Layer("Route")

#Generate directions features and save them to disk.
arcpy.na.GenerateDirectionsFeatures(RouteLayer,
                                        r'C:\Data\Directions.gdb\RouteDirections')

ArcGIS Desktop

  • Startseite
  • Dokumentation
  • Support

ArcGIS

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

Über Esri

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