Exercise 2: Creating and calibrating route data

Complexity: Beginner Data Requirement: ArcGIS Tutorial Data Setup Goal: Creating and calibrating route data using the linear referencing geoprocessing tools.

The first thing you will need for any linear referencing project is accurate route data. In this exercise, you use tools in the Linear Referencing toolbox to create and calibrate route data. The first activity is to create a temporary layer representing only the line features that have route and measure information stored as attribute values. Next, you will create a route feature class by merging the input line features of the temporary layer that share a common route identifier. Finally, you will recalibrate the newly created routes using a point feature class storing route and measure information as attributes.

Creating a layer

Not every feature in the base_roads feature class has route and measure information. Therefore, before any routes are created, you will want to isolate only those routes that contain this information. Creating routes using features that do not have this information would be pointless.

Creating a temporary layer allows you to do things, such as make selections, without affecting the original data source. This layer will not appear in the ArcCatalog table of contents, because it is created inmemory and simply references the data stored on disk. These layers can be used as inputs to other geoprocessing tools within your working session. Once you exit the application, the in-memory layers will be removed.

Steps:
  1. In ArcCatalog, expand the Toolboxes folder in the Catalog tree.
  2. Expand System Toolboxes to show its contents.
  3. Expand the Data Management Tools toolbox to show its contents.
  4. Expand the Layers and Table Views toolset to show its contents.
  5. Right-click the Make Feature Layer tool and click Open. Alternatively, you can double-click the Make Feature Layer tool to open it.
  6. There are several ways to set the input feature class. You can drag a feature class from the ArcCatalog tree and drop it onto the text box, click the browse button and navigate to the feature class in the dialog box, or simply type the full path to the feature class in the text box.
    The tutorial instructions ask you to type names and paths into the appropriate text boxes. Feel free, however, to use any of the available techniques.
  7. Type C:\MyLR\PITT.gdb\PITT\base_roads for the value of the Input Features parameter.
  8. Type measured_roads for the value of the Output Layer parameter.
  9. Click Expression.

    The Query Builder dialog box opens.

  10. Type "ROUTE1" <> 0 in the text box.

  11. Click OK on the Query Builder dialog box.
  12. Click OK on the Make Feature Layer dialog box.

    Shows Make Feature Layer dialog and entries

    Shows Query Builder

    A status bar appears in the lower right of your screen as the tool runs. When the tool completes, a status message appears.

Creating route data

The Create Routes tool is used to specify the input line features, the route identifier field, the method used to set the route measures, and the output feature class. Note that the input features can be any supported format. This includes coverage, shapefile, personal, file, and enterprise geodatabases and computer-aided design (CAD) data.

Steps:
  1. Expand the Linear Referencing Tools toolbox to show its contents.
  2. Right-click the Create Routes tool and click Open.
  3. Click the Input Line Featuresdrop-down arrow and click the measured_roads layer.
  4. Click the Route Identifier Field drop-down arrow and click ROUTE1.

    The values in the route identifier field uniquely identify each route.

  5. Next, you need to specify the name for the output feature class. This feature class can be contained within the same geodatabase as the input, or you can save it to another geodatabase or shapefile. If it is saved to a geodatabase, it can be contained within a feature dataset or on its own as a feature class. For this exercise, you will be writing the new data to the same feature dataset as the input.
  6. Type C:\MyLR\PITT.gdb\PITT\routes for the value of the Output Route Feature Class parameter.
  7. Next, specify how the route measures will be obtained. There are three choices:

    • LENGTHGeometric lengths of the input features are used to accumulate the measures.
    • ONE_FIELDValues stored in a measure field are used to accumulate the measures.
    • TWO_FIELDSValues stored in from- and to-measure fields are used to set the measures.

    You will use the last method.

  8. Click the Measure Source drop-down arrow and click TWO_FIELDS.

    This enables both the From- and To-Measure Field input fields.

    Top of the Create Routes tool dialog
  9. Click the From-Measure Field drop-down arrow and click BEGMP1.
  10. Click the To-Measure Field drop-down arrow and click ENDMP1.
  11. Click OK to execute the tool.
    Bottom of the Create Routes Tool dialog

    A status bar appears in the lower right of your screen as the tool runs. When the tool completes, a status message appears.

Calibrating route data

Imagine that at some point in the future, the highway authority's road maintenance crew acquires a distance measuring instrument (DMI) to accurately record mileage information along the highways. For a sample set of highways, the crew goes out and captures mileage information approximately every 1/10 of a mile. The results of this effort are stored as points in a shapefile, where the route and mileage information are stored as attributes.

In the next section of this tutorial, you will use the Calibrate Routes tool to adjust the measures of the routes you just created to match those of the points in the shapefile. The result will be written to a new feature class.

The Calibrate Routes tool is used to specify the input route feature class, the route identifier field, the input point feature class, the measure field, the methods used to set the route measures, and the output feature class.

Steps:
  1. Right-click the Calibrate Routes tool in the Linear Referencing toolbox and click Open.
  2. Type C:\MyLR\PITT.gdb\PITT\routes for the value of the Input Route Features parameter.
  3. Click the Route Identifier Field drop-down arrow and click ROUTE1.

    The values in the Route Identifier Field uniquely identify each route.

  4. Type C:\MyLR\calibration_points.shp for the value of the Input Point Features parameter.
  5. Click the Point Identifier Field drop-down arrow and click ROUTE1.

    This is the common field, shared with the route feature class.

  6. Click the Measure Field drop-down arrow and click MEASURE.
  7. Type C:\MyLR\PITT.gdb\PITT\routes_new for the value of the Output Route Feature Class parameter.
    Top of Calibrate Routes tool
  8. A tolerance can be specified to limit how far a calibration point can be from its route. Points outside the tolerance will not be used by the calibration process.
  9. Click the Measure Calculation Method drop-down arrow and click DISTANCE.
  10. Type 5 for the value of the Search Radius parameter.

    This is more than enough for the data that is being used here.

  11. Click the Search Radius drop-down arrow and click Feet.

    This sets to feet the units to be used for the search radius.

  12. Click OK to execute the tool.
    Bottom of calibrate routes tool

    A status bar appears in the lower right of your screen as the tool runs. When the tool completes, a status message appears.

In this exercise, you learned how to create a route feature class by merging input line features that shared a common identifier and how to adjust the route measures using measure information stored in a point shapefile.


Published 6/7/2010