Configure Address Feature Classes (Location Referencing)

Summary

Configures the Address Range and Site Address feature classes from the Address Data Management solution for use with a linear referencing system (LRS) with the ArcGIS Roads and Highways extension.

Usage

  • You must provide an LRS centerline feature class or an LRS line event that includes addressing information for the Input Address Range Feature Layer parameter.

    Learn more about the LRS data model in Roads and Highways and the Address Data Management solution in ArcGIS Enterprise.

  • The Left From Address Field, Left To Address Field, Right From Address Field, and Right To Address Field parameter values must be short or long field types.

  • You must provide a point feature class for the Input Site Address Feature Layer parameter.

  • The Address Number Field parameter value must be a short, long, or text field type.

  • The feature classes that you use for the Input Address Range Feature Layer and Input Site Address Feature Layer parameters must be in the same feature dataset as the LRS layers.

  • This tool requires a file geodatabase, branch versioned enterprise geodatabase connection, or traditionally versioned enterprise geodatabase connection.

    Learn more about versioning in ArcGIS Pro

  • This tool is not supported in feature services.

Parameters

LabelExplanationData Type
Input Address Range Feature Layer

The input LRS centerline or LRS line event feature class that is the Address Management Address Range feature class.

Feature Layer
Left From Address Field

The field in the Address Range feature class that contains information for the first address on the left side of a roadway.

Field
Left To Address Field

The field in the Address Range feature class that contains information for the last address on the left side of a roadway.

Field
Right From Address Field

The field in the Address Range feature class that contains information for the first address on the right side of a roadway.

Field
Right To Address Field

The field in the Address Range feature class that contains information for the last address on the right side of a roadway.

Field
Input Site Address Features

The input point feature class that is the Address Management Site Address feature class.

Feature Layer
Address Number Field

The field in the Site Address feature class that contains information for the site address number.

Field

Derived Output

LabelExplanationData Type
Output Address Range Features

The updated Address Range feature class.

Feature Layer
Output Site Address Features

The updated Site Address feature class.

Feature Layer

arcpy.locref.ConfigureAddressFeatureClasses(in_address_range_features, left_from_address_field, left_to_address_field, right_from_address_field, right_to_address_field, in_site_address_features, address_number_field)
NameExplanationData Type
in_address_range_features

The input LRS centerline or LRS line event feature class that is the Address Management Address Range feature class.

Feature Layer
left_from_address_field

The field in the Address Range feature class that contains information for the first address on the left side of a roadway.

Field
left_to_address_field

The field in the Address Range feature class that contains information for the last address on the left side of a roadway.

Field
right_from_address_field

The field in the Address Range feature class that contains information for the first address on the right side of a roadway.

Field
right_to_address_field

The field in the Address Range feature class that contains information for the last address on the right side of a roadway.

Field
in_site_address_features

The input point feature class that is the Address Management Site Address feature class.

Feature Layer
address_number_field

The field in the Site Address feature class that contains information for the site address number.

Field

Derived Output

NameExplanationData Type
out_address_range_features

The updated Address Range feature class.

Feature Layer
out_site_address_features

The updated Site Address feature class.

Feature Layer

Code sample

ConfigureAddressFeatureClasses example 1 (Python)

Demonstrates how to use the ConfigureAddressFeatureClasses function in the Python window.

# Name: ConfigureAddressFeatureClasses_ex1.py
# Description: Configure address feature classes for use with a linear referencing system (LRS) in the Python window.
# Requires: ArcGIS Location Referencing

# Set current workspace
arcpy.env.workspace= r"C:\Data\AM_LR.gdb"

# Set tool variables
in_address_range_features = r"C:\Data\AM_LR.gdb\LRS\AddressRange"
left_from_address_field = "fromleft"
left_to_address_field = "toleft"
right_from_address_field = "fromright"
right_to_address_field = "toright"
in_site_address_features = r"C:\Data\AM_LR.gdb\LRS\SiteAddress"
address_number_field = "addrnum"

# Execute the tool
arcpy.locref.ConfigureAddressFeatureClasses(in_address_range_features, left_from_address_field, left_to_address_field, right_from_address_field, right_to_address_field, in_site_address_features, address_number_field)
ConfigureAddressFeatureClasses example 2 (stand-alone script)

Demonstrates how to use the ConfigureAddressFeatureClasses function as a stand-alone Python script.

# Name: ConfigureAddressFeatureClasses_ex2.py
# Description: Configure address feature classes for use with a linear referencing system (LRS) in a stand-alone script.
# Requires: ArcGIS Location Referencing

# Import arcpy module
import arcpy

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

# Set current workspace
arcpy.env.workspace = r"C:\Data\AM_LRconnection.sde"

# Set tool variables
in_address_range_features = r"C:\Data\AM_LRconnection.sde\LRS\LRowner.AddressRange"
left_from_address_field = "fromleft"
left_to_address_field = "toleft"
right_from_address_field = "fromright"
right_to_address_field = "toright"
in_site_address_features = r"C:\Data\AM_LRconnection.sde\LRS\LRowner.SiteAddress"
address_number_field = "addrnum"

# Execute the tool
arcpy.locref.ConfigureAddressFeatureClasses(in_address_range_features, left_from_address_field, left_to_address_field, right_from_address_field, right_to_address_field, in_site_address_features, address_number_field)

# Check in the license
arcpy.CheckInExtension("LocationReferencing")

Environments

This tool does not use any geoprocessing environments.

Licensing information

  • Basic: Requires ArcGIS Location Referencing (ArcGIS Pipeline Referencing or ArcGIS Roads and Highways)
  • Standard: Requires ArcGIS Location Referencing (ArcGIS Pipeline Referencing or ArcGIS Roads and Highways)
  • Advanced: Requires ArcGIS Location Referencing (ArcGIS Pipeline Referencing or ArcGIS Roads and Highways)

Related topics