Краткая информация
Объект Сопоставление атрибутов путевого листа сети предоставляет информацию об атрибутах ваших данных, которые сопоставляются определенным свойствам в конфигурации путевого листа набора сетевых данных.
Свойства
| Свойство | Описание | Тип данных | 
| againstField (только чтение) | Имя поля ваших данных, сопоставленное свойству key для переходов против направления оцифровки объектов. | String | 
| alongField (только чтение) | Имя поля ваших данных, сопоставленное свойству key для переходов по направлению оцифровки объектов. | String | 
| key (только чтение) | Имя свойства путевого листа набора сетевых данных, которому сопоставляется атрибут ваших данных. | String | 
| undirectedField (только чтение) | Имя поля ваших данных, сопоставленное свойству key для переходов любых направлений движения. | String | 
Пример кода
# Name: NDSSourceDirectionsFieldMapping_ex01.py
# Description: Print information about the directions field mappings associated
#              with edge sources in the network dataset.
import arcpy
import sys
network = r"C:/Data/NetworkDatasetWithLandmarks.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 edge sources
sources = desc.edgeSources
#If there are no edge sources in the network dataset, quit.
if not sources:
    print("No edge sources")
    sys.exit()
#Loop through all the edge sources
for source in sources:
    print("\n--------------------")
    print("Edge source name: " , source.name)
    # Get the directions information specific to this edge source
    sDir = source.sourceDirections
    # Check if the edge source has turn and confirmation landmarks associated with it.
    # If so, print some information about the landmarks.
    if hasattr(sDir, "fieldMappings"):
        fieldMappings = sDir.fieldMappings
        print("\n--Field mapping information--")
        for fm in fieldMappings:
            print("\nProperty key:", fm.key)
            print("Along field name:", fm.alongField)
            print("Against field name:", fm.againstField)
            print("Undirected field name:", fm.undirectedField)
    else:
        print("Source does not directions field mappings.")