HOW TO

Create equally spaced transects perpendicular to a line feature in ArcMap

Last Published: April 25, 2020

Summary

Creating equally spaced transects is important to derive the necessary information from lines running perpendicular to a main feature such as roads, pipelines, or rivers. For example, to study the distribution of amphibians along a coastal swamp, or to determine the water velocity along a river.

The image below shows a portion of a study area; a 3000-meter hiking trail in Sequoia National Park, California. In this article, the plant distribution surrounding this portion of the trail is studied based on the equally spaced transects created every 500 meters.

The hiking trail for study

Procedure

This method uses ArcMap's linear referencing tools available with a basic license. The following steps describe how to create equally spaced transects perpendicular to a line feature in ArcMap:

  1. In ArcMap, create a route feature class. This is the main line feature. Equally spaced perpendicular transects are created along this line feature.
Note:
A route feature class is a line feature class containing the M-value and a route identifier field. In this example, the route identifier field is ROUTEID. Other common names are RID and ROUTE_ID. Refer to ArcMap: About creating route feature class or ArcMap: Setting the route identifier field for more information.
Create the main line feature by tracing a portion of an existing line feature, in this case the 3000-meter hiking trail. Name the line feature Study_Trail and specify the ROUTEID as 1.
Route identifier fields
  1. Apply the route measure to define the M-value for each vertex of the route feature class.
    1. In an edit session, click the Edit Tool icon The Edit Tool icon and double-click the route feature class. The vertices within the route feature class are displayed.
    2. Click the Sketch Properties icon The Sketch Properties icon to open the Edit Sketch Properties window.
    3. In the M column, define point 0 as 0.000, and the last point of the length is displayed in the SHAPE_Length column of the attribute table. In this example, the M-value of the last point (point 16) is defined as 3000.000.
This is the Edit Sketch Properties window
  1. Right-click the route feature class. Select Route Measure Editing > Calculate NaN. Save the edits.
Click Calculate NaN
The M column in the Edit Sketch Properties window populates the NaN values with the respective M-values for each vertex based on the first and last M-values specified.
The M-values are specified
  1. Create two point event tables each for the positive and negative offset points. The point event tables store information of perpendicular points along the route feature class. In this case, two point event tables are created as geodatabase tables.
    1. In Catalog, right-click the file geodatabase. Click New > Table. Name the table for the positive offset points Offset_Positive.
    2. Create three additional fields: a route identifier field, a location field to locate the position of perpendicular points along the route feature class, and the offset field to locate the deviation from the route feature class. Name each field ROUTEID, MEASURE_LOCATION, and OFFSET, respectively.
Add three more fields
  1. Click Finish. A geodatabase table is created within the file geodatabase and located in Table Of Contents.
  2. Repeat steps 3a through 3c to create another event table for the negative offset points. Name the table Offset_Negative.
Note:
As there are no direct tools to create transects across the route feature class, perpendicular points are created on both sides of the route feature class before they are connected to form perpendicular transects along the route feature class. Points located on the right of the route are the positive offsets while points located on the left are negative offsets.

So point event tables, instead of line event tables, are created to locate the position of perpendicular points along the route feature class. Refer to ArcMap: An overview of creating and editing event data or ArcMap: About creating event tables in ArcCatalog for more information.
  1. Define the values for the event tables.
    1. In an edit session, open the attribute table of the point event table.
    2. Manually enter the information. Save the edits.
The image below shows the positive and negative offset event tables. Perpendicular points are drawn on both sides of the route feature class.
Point event tables
  1. Project the perpendicular points on the map using the Make Route Event Layer tool. These perpendicular points are the vertices of the line transects.
    1. In Input Route Features, specify the route feature class as Study_Trail.
    2. Specify the Route Identifier Field as ROUTEID.
    3. In Input Event Table, select the point event table created and specify it as Offset_Positive.
    4. In Event Type, select POINT.
    5. In the Measure Field, specify the field to locate the position of points along the route feature class as MEASURE_LOCATION.
    6. Specify Offset Field as OFFSET.
    7. Check the Events with a positive offset will be placed to the right of the routes option.
    8. Click OK. Positive offset points are created on the right side of the route.
    9. Repeat steps 5a through 5h to create the negative offset points.
This is the Make Route Event Layer tool window
The image below shows the positive and negative offsets created on the right and left of the route feature class.
The positive and negative offsets
Note:
The event layer created is temporary and the output is not stored in the file geodatabase. To make the event layer permanent, export the event layer to a feature class.
  1. Use the Merge tool to combine both positive and negative offset event layers into the same feature class. Name the output feature class Offsets_Merge.
This is the Merge window
  1. Use the Points To Line tool to create perpendicular transects connecting the positive and negative offsets.
    1. In Input Features, select the merged event layers created in step 6. In this example, it is Offsets_Merge.
    2. In Line Field, select the field containing the location value. In this example, it is MEASURE_LOCATION. Click OK.
This is the Points To Line window.
Equally spaced transects are created across the route feature class.
Transects are created perpendicular to the line feature class

Article ID: 000012318

Software:
  • ArcMap

Receive notifications and find solutions for new or common issues

Get summarized answers and video solutions from our new AI chatbot.

Download the Esri Support App

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options