Disable Referent Fields (Location Referencing)

Краткая информация

Disables referent fields for an existing linear referencing system (LRS) event feature class or feature layer. It does not delete the referent columns; it removes the referent column information from the Lrs_Metadata table.

Использование

  • The referent fields must be enabled for the event prior to running this tool.

Параметры

ПодписьОписаниеТип данных
LRS Event Feature Class

The input feature class or feature layer for the LRS event.

Feature Layer

Производные выходные данные

ПодписьОписаниеТип данных
Updated LRS Event Feature Class

The updated feature layer for the event.

Feature Layer

arcpy.locref.DisableReferentFields(in_feature_class)
ИмяОписаниеТип данных
in_feature_class

The input feature class or feature layer for the LRS event.

Feature Layer

Производные выходные данные

ИмяОписаниеТип данных
out_feature_class

The updated feature layer for the event.

Feature Layer

Пример кода

DisableReferentFields example 1 (Python window)

The following script demonstrates how to use the DisableReferentFields tool in a Python window.

# Name: Disable_Referent_Fields_ex1.py
# Description: Disable referent fields in an existing LRS event feature class. 
# Requires: ArcGIS Location Referencing

# Check out license
arcpy.CheckOutExtension("LocationReferencing")

# Set current workspace
arcpy.env.workspace = r"C:\db_connections\test_connection.sde"

# Local variables
in_feature_class = r"test_gdb.user.LRS.Event_FeatureClass"

# Execute the tool
arcpy.DisableReferentFields_locref(in_feature_class)

# Check in license
arcpy.CheckInExtension('LocationReferencing')
DisableReferentFields example 2 (stand-alone script)

The following script demonstrates how to use the DisableReferentFields tool in a stand-alone Python script.

# Name: Disable_Referent_Fields_ex2.py
# Description: Disables referent fields in an existing LRS event feature class. 
# Requires: ArcGIS Location Referencing

# import arcpy module
import arcpy
 
# Check out license
arcpy.CheckOutExtension("LocationReferencing")

# Local variables:
in_feature_class = r"C:\db_connections\test_connection.sde\LRS\test_gdb.user.Event_FeatureClass"

# Execute the tool
arcpy.DisableReferentFields_locref(in_feature_class)

# Check in license
arcpy.CheckInExtension('LocationReferencing')

Параметры среды

Этот инструмент не использует параметры среды геообработки

Информация о лицензиях

  • Basic: Обязательно ArcGIS Location Referencing
  • Standard: Обязательно ArcGIS Location Referencing
  • Advanced: Обязательно ArcGIS Location Referencing

Связанные разделы