ArcGIS Desktop

  • ArcGIS Pro
  • ArcMap

  • My Profile
  • Ayuda
  • Sign Out
ArcGIS Desktop

ArcGIS Online

La plataforma de representación cartográfica para tu organización

ArcGIS Desktop

Un completo SIG profesional

ArcGIS Enterprise

SIG en tu empresa

ArcGIS Developers

Herramientas para crear aplicaciones basadas en la ubicación

ArcGIS Solutions

Plantillas de aplicaciones y mapas gratuitas para tu sector

ArcGIS Marketplace

Obtén aplicaciones y datos para tu organización.

  • Documentación
  • Soporte
Esri
  • Iniciar sesión
user
  • Mi perfil
  • Cerrar sesión

ArcMap

  • Inicio
  • Introducción
  • Cartografiar
  • Analizar
  • Administrar datos
  • Herramientas
  • Extensiones

Network Directions Attribute Mapping

  • Resumen
  • Propiedades
  • Muestra de código

Resumen

The Network Directions Attribute Mapping object provides information about the descriptor attributes in your network dataset that are mapped to specific properties in the network dataset's directions configuration.

Propiedades

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

The name of the network attribute mapped to the directions property described by the key property.

String
key
(Sólo lectura)

The name of the network dataset directions property to which the network dataset's attribute is being mapped.

String

Muestra de código

Network Directions Attribute Mapping Properties example

Print the network dataset's directions attribute mapping properties.

# Name: NDSDirectionsAttributeMapping_ex01.py
# Description: Print information about the directions attribute mappings
#              for the network dataset.

import arcpy
import sys

network = r"C:/Data/NetworkDatasetWithDirections.gdb/Transportation/Streets_ND"

# Create Describe object for the network dataset
desc = arcpy.Describe(network)

# If the directions are not set for the network dataset, exit
if not desc.supportsDirections:
    print("No direction information")
    sys.exit()

# Get all the network's directions properties
directions = desc.directions

# Loop through the attribute mappings
if hasattr(directions, "attributeMappings"):
    attrMappings = directions.attributeMappings
    for mapping in attrMappings:
        print("\nKey:", mapping.key)
        print("Attribute:", mapping.attribute)
else:
    print("Network dataset does not contain directions attribute mappings.")

ArcGIS Desktop

  • Inicio
  • Documentación
  • Soporte

ArcGIS

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

Acerca de Esri

  • Quiénes somos
  • Empleo
  • Blog de Esri
  • Conferencia de usuarios
  • Cumbre de desarrolladores
Esri
Díganos su opinión.
Copyright © 2021 Esri. | Privacidad | Legal