Label | Explanation | Data Type |
Input Route Features | The target network onto which the event layers will be dynamically segmented. | Feature Layer |
Event Layers | The event layers that will be dynamically segmented together onto a target network. The centerline layer can be used as an input to dynamically segment events. | Feature Layer |
Output Dataset | The table or feature class containing the output event records that will be created. | Table |
Include Geometry
(Optional) | Specifies whether the Output Dataset parameter value will include event geometry.
| Boolean |
Network Fields
(Optional) | The fields from the network layer that will be included in the output. | Field |
Available with Location Referencing license.
Summary
Overlays one or more line and point event layers onto a target network and outputs a feature class or table that represents the dynamic segmentation of the inputs.
Illustration
Usage
The following table is the output for the tool illustration above:
Output (Overlay Events)
Type From Measure To Measure Line Event 1 Line Event 2 Point Event Line
0
2
A
1
<Null>
Point
2
2
A
1
PE1
Line
2
3
A
1
<Null>
Line
3
4
B
1
<Null>
Line
4
5
B
2
<Null>
The Event Layers parameter values can be either line events only or can include both point and line events.
The Event Layers parameter can only include event feature classes registered with an LRS Network.
Note:
- The centerline feature class can be input to the Event Layers parameter to dynamically segment events when it is part of an Address Data Management configuration or an ArcGIS Utility Network configuration. When the centerline feature class is part of an Address Data Management configuration, the centerline direction is honored in the output.
- In an Address Data Management configuration, use the Configure Address Feature Classes tool to configure the centerline feature class for use with an LRS.
- In a Utility Network configuration, use the Configure Utility Network Feature Class tool to configure the centerline feature class for use with an LRS.
If the input layer has address range fields from an Address Data Management configuration and is configured as an Address Range feature class in an LRS, the values in the address range fields will be updated for each segment in the output.
If the input event layers use different linear referencing methods (LRM), they will be translated using the LRM of the target network.
This tool supports selection sets and definition queries on the Input Route Features and Event Layers parameter values.
Note:
To include all event records associated with the input routes, turn off the Use the selected records or the Use the filtered records toggle button for each input event layer.
This tool supports input event layers that are configured to contain events that span multiple routes. The output will still dynamically segment at the route level of the target network using the Network Fields parameter value.
This tool supports temporal segmentation (time slicing). This will occur by default and can be overridden by creating a time-based definition query or applying a selection set to the inputs.
This tool supports the inclusion of one or more fields from the network feature class in the output using the Network Fields parameter.
The output can be saved as either a table or a feature class.
If the output is saved as a table or feature class, the output will have the following indexes and fields:
Index Field route_id
- Route_ID
rid_dates_measures
- Route_ID
- From_Date
- To_Date
- From_Measure
- To_Measure
If more than one LRS Network exists in the Utility Network configuration, the measures for the input event layers will match the measures shown in the second column of the following table:
If the LRS with the Utility Network configuration contains The measures in the Pipeline Line feature class belong to Line network, non-line network
Line network
Line network
Line network
More than one line network
Line network that has the derived network
More than one line network with no derived network
Line network that has the lowest number in the coded-value domain, dLRSNetworks
More than one line network with derived networks
Line network that has the lowest number in the coded-value domain, dLRSNetworks
One non-line network
Non-line network
More than one non-line network
Network that has the lowest number in the coded-value domain, dLRSNetworks
This tool supports physically gapped routes and events as input routes and input events, respectively.
Only one event per layer can be on a route segment. For example, for a layer named Speed Limit, only one event record in that layer can be on that segment. A segment can have multiple events, each in its own event layer. Use the ArcGIS Data Reviewer Invalid Event Measures check to identify and resolve issues with event data.
Parameters
arcpy.locref.OverlayEvents(in_route_features, event_layers, output_dataset, {include_geometry}, {network_fields})
Name | Explanation | Data Type |
in_route_features | The target network onto which the event layers will be dynamically segmented. | Feature Layer |
event_layers [event_layers,...] | The event layers that will be dynamically segmented together onto a target network. The centerline layer can be used as an input to dynamically segment events. | Feature Layer |
output_dataset | The table or feature class containing the output event records that will be created. | Table |
include_geometry (Optional) | Specifies whether the output_dataset parameter value will include event geometry.
| Boolean |
network_fields [network_fields,...] (Optional) | The fields from the network layer that will be included in the output. | Field |
Code sample
The following Python window script demonstrates how to use the OverlayEvents function in the Python window.
# Name: OverlayEvents_ex1.py
# Description: Overlays linear event feature layers against a target network and output a feature class or table that represents the dynamic segmentation of those inputs.
# Requirements: ArcGIS Location Referencing
# tool variables
in_route_features = r"C:\Data\NY_Data.gdb\LRS\LRSN_MilePoint"
event_layers = [r"C:\Data\NY_Data.gdb\LRS\LRSE_Access_Control", r"C:\Data\NY_Data.gdb\LRS\LRSE_Functional_Class"]
output_dataset = r"C:\Data\NY_Data.gdb\Output"
Geometry = "EXCLUDE_GEOMETRY"
network_fields = ""
# Set current workspace
arcpy.env.workspace = r"C:\Data\NY_Data.gdb"
# Execute the tool
arcpy.locref.OverlayEvents(in_route_features, event_layers, output_dataset, Geometry, network_fields)
The following Python script demonstrates how to use the OverlayEvents function in a stand-alone Python script.
# Name: OverlayEvents_ex2.py
# Description: Overlay linear event feature layers against a target network then output a feature class or table that represents the dynamic segmentation of those inputs.
# Requires: ArcGIS Location Referencing
# Import arcpy module
import arcpy
# Check out license
arcpy.CheckOutExtension("LocationReferencing")
# Local variables:
Network = r"C:\Data\NY_Data.gdb\LRS\LRSN_MilePoint"
Events = [r"C:\Data\NY_Data.gdb\LRS\LRSE_Access_Control", r"C:\Data\NY_Data.gdb\LRSE_Functional_Class"]
Output_Dataset = r"C:\Data\NY_Data.gdb\Output"
Geometry = "EXCLUDE_GEOMETRY"
Network_Fields = ""
# Process: Overlay Events
arcpy.locref.OverlayEvents(Network, Events, Output_Dataset, Geometry, Network_Fields)
# Check in license
arcpy.CheckInExtension('LocationReferencing')
The following stand-alone script demonstrates how to use the OverlayEvents function in a feature service.
# Name: OverlayEvents_Pro_Ex3.py
# Description: Overlay events using a feature service. It is recommended to work in a version and post to the default version.
# Requires: ArcGIS Location Referencing
# Import arcpy module
import arcpy
# Check out license
arcpy.CheckOutExtension("LocationReferencing")
#Input LRS network and events are in feature service. Portal signi is required to access the feature service.
arcpy.SignInToPortal('https://yourdomain.com/portal', 'username', 'password')
# Map the input LRS network and events from the feature service. Here, 1 corresponds to the input LRS network and 2 and 3 corresponds to input events.
in_network = r"https://yourdomain.com/server/rest/services/FeatureServiceName/FeatureServer/1"
event1 = r"https://yourdomain.com/server/rest/services/FeatureServiceName/FeatureServer/2"
event2 = r"https://yourdomain.com/server/rest/services/FeatureServiceName/FeatureServer/3"
in_events = [event1, event2]
# Set tool variables
Output_Dataset = r"C:\Data\LocationReferencing.gdb\output"
Geometry = "EXCLUDE_GEOMETRY"
Network_Fields = ""
# Process: Overlay Events.
arcpy.locref.OverlayEvents(in_network, in_events, Output_Dataset, Geometry, Network_Fields)
# Check in license
arcpy.CheckInExtension('LocationReferencing')
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)