Configure Address Feature Classes (Location Referencing)

Summary

Configures the Address Range and Site Address Point feature classes from the Address Data Management solution for use with a linear referencing system (LRS) and 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.

  • The Address Range Road Name Field parameter value must be a text field type.

  • 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 Site Address Road Name parameter value must be a text field type.

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

  • This tool supports data from a file geodatabase or an enterprise geodatabase (branch versioned or traditional versioned connection).

    Learn more about versioning in ArcGIS Pro

  • This tool does not support data from a feature service.

Parameters

LabelExplanationData Type
Input Address Range Feature Layer

The input LRS centerline or LRS line event feature class that will be configured as the 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 Site Address Point feature class from the Address Data Management solution.

Feature Layer
Address Number Field

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

Field
Address Range Road Name Field

The field in the Address Range feature class that contains information for the name of a roadway.

Field
Site Address Road Name Field

The field in the Site Address Point feature class that contains information for the name of a roadway.

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 Point 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, address_range_road_name_field, site_address_road_name)
NameExplanationData Type
in_address_range_features

The input LRS centerline or LRS line event feature class that will be configured as the 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 Site Address Point feature class from the Address Data Management solution.

Feature Layer
address_number_field

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

Field
address_range_road_name_field

The field in the Address Range feature class that contains information for the name of a roadway.

Field
site_address_road_name

The field in the Site Address Point feature class that contains information for the name of a roadway.

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 Point 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"
address_range_road_name_field = "fullroadname"
site_address_road_name = "addroadname"


# Run 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, address_range_road_name_field, site_address_road_name)
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"
address_range_road_name_field = "fullroadname" 
site_address_road_name = "addroadname"

# Run 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, address_range_road_name_field, site_address_road_name)

# 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