Disable Stationing Fields (Location Referencing)

Summary

Disables stationing fields for the registered LRS event.

Learn more about stationing in the ArcGIS Pipeline Referencing events data model or stationing in the ArcGIS Roads and Highways events data model.

Usage

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

Parameters

LabelExplanationData Type
Event Feature Class

An existing event feature class or feature layer that is registered to an LRS.

Feature Layer

Derived Output

LabelExplanationData Type
Output Event Feature Class

The updated feature layer for the event.

Feature Layer

arcpy.locref.DisableStationingFields(in_feature_class)
NameExplanationData Type
in_feature_class

An existing event feature class or feature layer that is registered to an LRS.

Feature Layer

Derived Output

NameExplanationData Type
out_feature_class

The updated feature layer for the event.

Feature Layer

Code sample

DisableStationingFields example 1 (Python window)

The following Python window script demonstrates how to use the DisableStationingFields function in immediate mode.

# Name: DisableStationingFields_Pro_ex1.py
# Description: Disables stationing fields for the registered LRS event.
# Requires: ArcGIS Location Referencing

# Tool variables 
in_feature_class = "c:\\LocationReferencing.sde\\LRS\LineEventFeatureClass"

# Execute the tool
arcpy.locref.DisableStationingFields(in_feature_class)
DisableStationingFields example 2 (stand-alone script)

The following script demonstrates how to use the DisableStationingFields function in a stand-alone Python script.

# Name: DisableStationingFields_Pro_ex2.py
# Description: Disables stationing fields for the registered LRS event.
# Requires: ArcGIS Location Referencing

# Import arcpy module
import arcpy

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

# Tool variables 
in_feature_class = "c:\\APR.gdb\\LRS\LineEventFeatureClass"

# Execute the tool
arcpy.locref.DisableStationingFields(in_feature_class)

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

Environments

This tool does not use any geoprocessing environments.

Licensing information

  • Basic: Requires ArcGIS Location Referencing
  • Standard: Requires ArcGIS Location Referencing
  • Advanced: Requires ArcGIS Location Referencing

Related topics