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

Street Name Fields

  • Resumen
  • Propiedades
  • Muestra de código

Resumen

The Street Name Fields object provides information about the fields containing the street names used in reporting driving directions.

Propiedades

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

The field name used for prefix direction.

String
prefixTypeFieldName
(Sólo lectura)

The field name used for prefix type.

String
streetNameFieldName
(Sólo lectura)

The field name used for street name.

String
suffixDirectionFieldName
(Sólo lectura)

The field name used for suffix direction.

String
suffixTypeFieldName
(Sólo lectura)

The field name used for suffix type.

String
priority
(Sólo lectura)

The priority for when these street name fields are used. The default value is 1.

Integer
fullNameFieldName
(Sólo lectura)

The field name used to store the full street name.

String
highwayDirectionFieldName
(Sólo lectura)

The field name used for highway direction.

String
languageFieldName
(Sólo lectura)

The field name used to store the language for the street name.

String

Muestra de código

Street Name Fields Properties Example

Display information about fields contaning street names used in driving directions.

# Name: NDSStreetNameFieldsProperties_ex01.py
# Description: Print information about field names used to generate street names
#              in directions  

import arcpy
import sys

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

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

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

print "Source Direction Information ----" 

# Get all the edge sources 
sources = desc.edgeSources 

if not sources:
    print "No edge sources"
    sys.exit() 
#Loop through all the edge sources
for source in sources:  
    print "--------------------" 
    print "Name: " , source.name 
    print "Source ID: " , source.sourceID  
    #Print the direction information specific to edge source    
    sDir = source.sourceDirections
    # Get the street name fields for each source
    sStreetFields = sDir.streetNameFields 
    for sStreetField in sStreetFields:
        print "Prefix direction field: " , sStreetField.prefixDirectionFieldName
        print "Prefix type field: " , sStreetField.prefixTypeFieldName
        print "Street name field: " , sStreetField.streetNameFieldName
        print "Suffix direction field: " , sStreetField.suffixDirectionFieldName 
        print "Suffix type field: " , sStreetField.suffixTypeFieldName 
        print "Priority: " , sStreetField.priority
        print "Full name field: " , sStreetField.fullNameFieldName
        print "Highway direction field: ",sStreetField.highwayDirectionFieldName
        print "Language field: " , sStreetField.languageFieldName

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