Skip To Content

Dynamic Segmentation widget

The Dynamic Segmentation widget takes multiple input event layers and summarizes them into a single segmented table. The tool creates new records, known as segments, at any measure along the event where any of the attributes from any of the input event layers change. You can view the results of a dynamic segmentation in either a table or a straight line diagram (SLD).

Intersections are also displayed in an SLD. Centerlines can be displayed in an SLD only when the LRS is configured with a utility network or the Address Data Management solution. Devices and junctions can be displayed in an SLD only when the LRS is configured with a utility network. You can use this widget to manage and visualize linear-referenced data, such as pipelines and roadways.

Note:

All Linear Referencing widgets support express mode. When you create an app in express mode, all Linear Referencing widgets are automatically configured based on the web map added to the Map widget. Any modifications made in the Map widget, such as changing the web map, will instantly be reflected in the Linear Referencing widgets. Express mode allows you to efficiently set up Linear Referencing widgets within ArcGIS Experience Builder, streamlining the deployment process for apps that contain Linear Referencing widgets.

Learn more about express mode

Examples for the pipeline industry

Use this widget to support app design requirements such as the following:

  • You want to analyze pipeline conditions and allocate funds for pipeline maintenance.
  • You need users to perform a cross-event check to verify the accuracy of event data along a route.
  • You want to check for and fill gaps in your data.

Examples for the surface transportation industry

Use this widget to support app design requirements such as the following:

  • You want to analyze road conditions using variables such as traffic and jurisdiction to determine how to allocate maintenance funds.
  • You need users to perform a cross-event check to verify the accuracy of Highway Performance Monitoring System data along a route.
  • You want to check for and fill gaps in your data.

Usage notes

This widget requires connection to a Map widget. To dynamically segment events, the Map widget must be connected to a web map data source with a linear referencing system (LRS) published with the Linear Referencing and Version Management capabilities enabled.

To create an LRS and publish a feature service with the Linear Referencing and Version Management capabilities enabled, complete the steps in Create the LRS, networks, events, and intersections and Share as web layers.

To use the Dynamic Segmentation widget with feature services published with ArcGIS Enterprise, you must sign in with an ArcGIS Enterprise account.

When you include this widget in an app, you can display results in a table or in an SLD.

When you display results in a table, you can interact with the table in the following ways:

  • Double-click a cell in the table to edit its value.
    Note:

    A line event's user-managed fields are editable when Type = Line in the table. A point event's user-managed fields are editable when Type = Point.

  • Click Save to save changes. Edits affect individual event layers.

An SLD is a graphical representation of event, intersection, centerline, pipeline device, and pipeline junction locations and their characteristics along routes. As with the table, the diagram is interactive, and the attributes are editable. Edits affect individual event layers.

When you display results in an SLD, you can interact with the diagram in the following ways:

  • Use the navigation buttons to change the scale and extent represented by the diagram.
  • Click the name of a layer to hide it from the diagram. You can click a hidden layer to return it to the active list.
  • Hover the pointer over an event, intersection, centerline, device, or junction to display a tooltip that lists the feature's attributes. The tooltip displays LRS attributes such as route ID, measure, start and end dates, and event ID. User-managed fields are also displayed. System-managed fields, such as ObjectID, shape, shape length, editor tracking, Validation Status, and referent fields, are excluded. For events, the tooltip displays a maximum of 20 fields. For intersections and centerlines, only the attribute that is configured as the display field in the settings is displayed. The attribute that is set as the display field is highlighted in the tooltip.
  • Click an event to highlight it on the map. Double-click an event to see attributes and statistics in a pop-up window. Some attributes are editable.
  • Click an intersection to highlight it on the map. Double-click an intersection to see attributes in a pop-up window. Attributes are not editable.
  • Click a centerline to highlight it on the map. Double-click a centerline to see attributes in a pop-up window. Attributes are not editable.
  • Click a device or a junction to highlight it on the map. Double-click the device or junction to see attributes in a pop-up window. Attributes are not editable.
  • Hover the pointer over the measure bar to display a tooltip that lists exact measure values.
  • Click a measure value to display a pop-up window that lists attributes of all events and intersections that exist at that measure.
  • If you configure a custom display field, the expression is displayed in the hover tooltip, ruler tooltip, and rectangular label.
  • Click the Map Interact button Map interact to turn off or turn on synchronization between the Map widget and the SLD. When enabled, navigating within the map will update the SLD, and vice versa.
    Note:

    When Map Interact Map interact is enabled, double-clicking along the SLD’s scale bar causes the map to zoom to the measure’s location.

If you experience poor performance or failures when using this widget, increase the heap size at the service level.

When using this widget in an app, if a message about acquiring locks appears, it means that conflict prevention is enabled.

Learn more about conflict prevention in ArcGIS Linear Referencing

When referent fields are enabled for the selected event layer, the widget automatically populates the referent fields.

Integration with the Oriented Imagery Viewer widget

You can integrate the Dynamic Segmentation widget with the Oriented Imagery Viewer widget to get a comprehensive understanding of the routes and events at a particular location. The following are the requirements for this integration:

  • The Oriented Imagery Viewer widget must be present in the app.
  • The Map widget must be connected to a web map that contains an LRS and at least one oriented imagery layer.
  • The SLD supports only one oriented imagery layer at a time.

When you perform the integration, you can interact with the SLD in the following ways:

  • Click a location in the oriented imagery layer of the SLD, and a red cross appears in the SLD, on the map, and in the Oriented Imagery Viewer widget panel. In the SLD, the circle marker for the current image is highlighted in red.
  • Click a location along the selected route on the map, and the location is marked with a red cross in the SLD. The Oriented Imagery Viewer widget panel is updated with the corresponding image.
  • When you click another location, the position of the red cross is synchronized across the SLD, the map, and the Oriented Imagery Viewer widget panel.
  • In the SLD, the horizontal bar under the circle markers represents the coverage footprint for the images. If the horizontal bar is not displayed, it means the existing images have no coverage for that location.
  • Double-click a location in the SLD to zoom in on both the SLD and the map.

Example of dynamic segmentation

Note:

The following is an example of dynamic segmentation for roadway data.

View a similar example for pipeline data.

In the following diagram, two line event layers, Speed Limit and Functional Class, and a point event layer are associated with a single route. Each event layer has different values along the route measures indicated by the color changes.

Event layers and segmented output on Route1
A straight line diagram displays dynamically segmented event layers.

The route is calibrated from left to right between measures 0 and 8. The three events are present on the route and have the input and output properties described in the subsections below.

Input

The following tables show the events' attributes:

Input (Speed Limit)

Route IDEvent IDFrom MeasureTo MeasureFrom DateTo DateSpeed Limit

Route1

Event1

0

4

1/1/2000

<Null>

65

Route1

Event2

4

8

1/1/2000

<Null>

40

Input (Functional Class)

Route IDEvent IDFrom MeasureTo MeasureFrom DateTo DateFunctional Class

Route1

Event1

0

6.7

1/1/2000

<Null>

Interstate

Route1

Event2

6.7

8

1/1/2000

<Null>

US Highway

Input (Point Event)

Route IDEvent IDMeasureFrom DateTo DateCode

Route1

Event1

5

1/1/2000

<Null>

P1

Output

The output feature class and accompanying attribute table are dynamically created using data from constituent line events. The attribute table is editable, and the edits go through to the individual event layers.

Moving in the direction of calibration of the route (from left to right), the first segment in the events is caused by the Speed Limit, 65, which starts at measure 0 and ends at measure 4. The second segment is caused by the Speed Limit, 40, which starts at measure 4 and ends at measure 5 due to the presence of the Point Event, P1. The third segment is caused by the Point Event, P1, at measure 5. The fourth segment between measures 5 and 6.7 contains the Speed Limit, 40, and the Functional Class, Interstate. The final segment between measures 6.7 and 8 contains the Speed Limit, 40, and the Functional Class, US Highway.

The following table shows the dynamic segmentation output:

Output (Dynamic Segmentation)

Route IDTypeSectionFrom MeasureTo MeasureFrom DateTo DateSpeed LimitFunctional ClassCode

Route1

Line

1

0

4

1/1/2000

<Null>

65

Interstate

Route1

Line

2

4

5

1/1/2000

<Null>

40

Interstate

Route1

Point

3

5

5

1/1/2000

<Null>

40

Interstate

P1

Route1

Line

4

5

6.7

1/1/2000

<Null>

40

Interstate

Route1

Line

5

6.7

8

1/1/2000

<Null>

40

US Highway

Settings

The Dynamic Segmentation widget includes the following settings:

  • Mode—Choose a method of loading data.
    • Select Layers—Select a Map widget and load all layers from the web map.
      • Select a Map widget—Select a Map widget on the page that's connected to a web map.
      • Load layers—Load layers from the web map in the connected Map widget. To load layers, the Map widget must be connected to a web map that contains LRS layers.
      • Clear layers—Remove all loaded layers from the widget.
      • Layers—After loading layers, you can click the down arrow to expand the list of layers. Click a layer to open the Layer Configuration panel.
      • Layer Configuration—Configure settings for individual layers.
        • LRS Network layers:
          • Route Identifier—Choose the default route identifier. For nonline networks, the default is route ID. For line networks, the default is route name.
        • LRS event layers:
          • Display field—Choose a display field for the event layer.
            • Event field—Choose a field to display within the SLD.
            • Custom—Choose the custom display expression that appears in the SLD. The event fields in the custom Arcade display expression must be included in the configured line attribute set or point attribute set. If those fields are not in the configured attribute set, a warning message appears. The message identifies the missing event fields and indicates that the widget uses the default display field instead.
              Note:

              You can configure a custom display field by creating an Arcade display expression in one of the following layers in ArcGIS Pro and including the layer in the feature service:

              • An event layer
              • A utility network layer (Pipeline Line, Pipeline Device, or Pipeline Junction)
              • A centerline layer configured as the Address Range layer in the Address Data Management solution
        • LRS intersection layers:
          • Display field—Choose a display field for the intersection layer.
        • LRS centerline layers:
          • Display field—Choose a display field for the centerline layer.
            • Layer field—Choose a field to display within the SLD.
            • Custom—Choose the custom display expression that appears in the SLD. If the custom Arcade display expression fails to run, then the default display field is used instead.
        • Utility network layers:
          • Display field—Choose a display field for the Pipeline Line, Pipeline Device, or Pipeline Junction layer.
            • Layer field—Choose a field to display within the SLD.
            • Custom—Choose the custom display expression that appears in the SLD. If the custom Arcade display expression fails to run, then the default display field is used instead.
    • Interact with a Map widget—Connect the Dynamic Segmentation widget to a Map widget. Any web maps in the connected Map widget appear in the list. After connecting to a Map widget, you can click the down arrow next to the Select Layers button to expand the list of layers. Click a layer to open the Layer Configuration panel.
      • Layer Configuration—Configure settings for individual layers. Review the settings available in the Layer Configuration panel.
      • Select Layers—Click the Select Layers button Select layers to open the Select Layers panel. You can select or unselect layers from the list in the panel.
  • Default settings—Configure the following default settings that you want available in the widget when it first loads:
    • Default dynamic segmentation result—Choose a default method for displaying results, either a table or an SLD. You can switch between the two at run time.
    • Default Network—If you add more than one network layer, you can set a default network layer.
      Note:

      When using the Route ID or Route Name text box to search for routes to be included in the dynamic segmentation, only route features within the Default Network value can be queried. To query other LRS Networks, use data actions.

    • Default attribute set type—Show results using a line attribute set or both line and point attribute sets.
    • Line attribute set—Choose a default line attribute set.
    • Point attribute set—Choose a default point attribute set.
    • Allow editing—Turn on this setting to allow users who have access to the data to edit it in the dynamic segmentation table and SLD.
    • Merge coincident events—Turn on this setting to automatically merge edited events that have exactly the same attributes as an existing event and are adjacent to or overlapping that existing event in terms of measure values.
    • Show measure range—Turn on this setting to use the measure range of the route for dynamic segmentation.
    • Table highlight color—Choose a color for the rows in the results table.
    • Map highlight color—Choose a color for displaying routes on the connected map.
    • Diagram default scale—Choose a default scale for the SLD. The unit is the network's unit.
    • Show statistics—Turn on this setting to show statistics in a pop-up window when double-clicking an event in an SLD.
  • Oriented Imagery Settings—These settings appear if at least one Oriented Imagery Viewer widget is present in the app. Configure settings related to the integration with the Oriented Imagery Viewer widget.
    • Oriented Imagery Widget—Choose an Oriented Imagery Viewer widget to integrate with the Dynamic Segmentation widget. The default option is None.
    • Search Tolerance—Specify the maximum allowable distance an image in an oriented imagery layer can deviate from a route and still be included in the SLD. The default value is 50 feet.

Interaction options

The following widgets support the Dynamic Segmentation data action, which you can turn on on the Action tab of their settings:

Run dynamic segmentation

To run dynamic segmentation, complete the following steps:

  1. Start Experience Builder, and sign in to an ArcGIS Enterprise portal.
  2. Add a Map widget, and connect it to a web map with LRS data published with the Linear Referencing and Version Management capabilities enabled.
  3. Add a Dynamic Segmentation widget, connect it to the Map widget, and load LRS layers from the Map widget.
  4. Publish the app.
  5. Launch the app, and, if prompted, sign in to your ArcGIS Enterprise portal.
  6. Open the Dynamic Segmentation widget.
  7. Provide a route ID or name in the Route ID or Route Name text box.

    If the network layer has a route name configured as an identifier, this setting is labeled Route Name.

    Note:

    You can also select events to be dynamically segmented with the LRS Identify widget, the Search By Route widget, or the Table widget. For more information, refer to the sections below.

  8. Select a record from the search results.
  9. Optionally, if you turned on the Show measure range setting, provide a valid measure range in the text boxes and click Search.
    Note:
    • If one or both text boxes are empty, the measure defaults to the route's start and end measures.
    • You can also provide measures in stationing format.

    The dynamic segmentation table or SLD is populated with results.

Run dynamic segmentation with the LRS Identify widget

To use the Dynamic Segmentation data action at run time with the LRS Identify widget, complete the following steps:

  1. Identify a location on a route with the LRS Identify widget.
  2. Click the Actions button at the top of the LRS Identify widget panel.
  3. Click Dynamic Segmentation.

    The dynamic segmentation table or SLD is populated with results.

Run dynamic segmentation with the Search By Route widget

To use the Dynamic Segmentation data action at run time with the Search By Route widget, complete the following steps:

  1. Search for a route using one of the following measure options:
    • No measure—All the events present between the start and end of the route are dynamically segmented.
    • Single measure—All the events located at the searched measure location are dynamically segmented.
    • Multiple measures—All the events located between the smallest and largest searched measure locations are dynamically segmented.
    • Range of measures—All the events located between the start measure and the end measure are dynamically segmented.
  2. Select a record from the search results.
  3. Click the Actions button at the top of the Search By Route widget panel.
  4. Click Dynamic Segmentation.

    The dynamic segmentation table or SLD is populated with results.

Run dynamic segmentation with the Table widget

To use the Dynamic Segmentation data action at run time with the Table widget, complete the following steps:

  1. Select a single route record in the table.
  2. Click the Actions button at the top of the Table widget panel.
  3. Click Dynamic Segmentation.

    The dynamic segmentation table or SLD is populated with results.