Существующий класс пространственных объектов или векторный слой, зарегистрированный в LRS.
Feature Layer
Производные выходные данные
Имя
Объяснение
Тип данных
out_feature_class
Обновленный векторный слой для данного события.
Feature Layer
Пример кода
DisableDerivedMeasureFields, пример 1 (окно Python)
Следующий скрипт окна Python показывает, как использовать инструмент DisableDerivedMeasureFields в режиме прямого запуска.
# Name: DisableDerivedMeasureFields_ex1.py
# Description: Disable fields that store the derived network route id, route name and measure fields.
# Requires: ArcGIS Location Referencing
# Tool variables
in_feature_class = r"C:\DisableDerivedMeasureFields\Py\APR.gdb\LRS\EventFeatureClass"
# Set current workspace
arcpy.env.workspace = r"C:\DisableDerivedMeasureFields\Py\APR.gdb"
# Run the tool
arcpy.locref.DisableDerivedMeasureFields(in_feature_class)
DisableDerivedMeasureFields, пример 2 (автономный скрипт)
Следующий скрипт демонстрирует использование инструмента DisableDerivedMeasureFields в автономном скрипте Python.
# Name: DisableDerivedMeasureFields_ex2.py
# Description: Disable fields that store the derived network route id, route name and measure fields.
# Requires: ArcGIS Location Referencing
# Import arcpy module
import arcpy
# Local variables:
in_feature_class = r"C:\DisableDerivedMeasureFields\Py\APR.gdb\LRS\EventFeatureClass"
# Run the tool
arcpy.locref.DisableDerivedMeasureFields(in_feature_class)
Параметры среды
Этот инструмент не использует параметры среды геообработки.
Информация о лицензировании
Basic: Требуется ArcGIS Location Referencing (ArcGIS Pipeline Referencing или ArcGIS Roads and Highways)
Standard: Требуется ArcGIS Location Referencing (ArcGIS Pipeline Referencing или ArcGIS Roads and Highways)
Advanced: Требуется ArcGIS Location Referencing (ArcGIS Pipeline Referencing или ArcGIS Roads and Highways)