HOW TO

Extract lines from a scanned map to a feature class in ArcGIS Pro

Last Published: February 7, 2025

Summary

Converting lines from a scanned map into a feature class automates the time-consuming task of manual line tracing. This approach is useful for datasets without vector features, for example, scanned maps of utility networks, parcel boundaries, or hand-drawn coastal and river outlines. By automating the extraction, data are properly prepared for analysis and visualization in ArcGIS Pro.

This article describes the workflow to extract the lines from a scanned map by detecting and converting them into vector features. In this example, the Isle of Kerrera boundary is extracted from the scanned map and converted into a line feature class.

Procedure

Note:
The workflow is most effective when the scanned map has minimal noise and clear contrast between the features. This ensures the line features are distinguishable for accurate extraction.
  1. Add and georeference the scanned map to the known coordinate system in ArcGIS Pro.
    1. Add the scanned map to the map. Refer to ArcGIS Pro: Browse to data to add to a map or scene for instructions.
    2. Georeference the scanned map to align it with the correct geographic location. Refer to ArcGIS Pro: Georeference a raster to a referenced layer for instructions.

The image below shows the georeferenced scanned map aligned on the map.

The georeferenced image aligned on the map
  1. Reclassify the cell values in the scanned map using the Reclassify tool and isolate the line features from the other areas.
Note:
The Reclassify tool requires a Spatial Analyst or 3D Analyst license.
    1. On the Analysis tab, in the Geoprocessing group, click Tools.
    2. In the Geoprocessing pane, search for and click Reclassify (Spatial Analyst Tools).
    3. In the Reclassify pane, on the Parameters tab, for Input raster, select the scanned map layer from the drop-down list.
    4. Under Reclassification, click Classify.
    5. In the Classify dialog box, for Method, select Natural Breaks (Jenks) from the drop-down list.
    6. For Classes, select the preferred number of classes from the drop-down list. In this example, the number is 3.
    7. Click OK.
The Classify dialog box
    1. For Output raster, specify a name and location to export the reclassified raster. Click Run.
The configured Reclassify pane
  1. Extract the raster values of the lines and convert the reclassified raster dataset to a polyline using the Raster to Polyline tool.
    1. In the Contents pane, right-click the reclassified raster layer and select Attribute Table.
    2. In the attribute table, identify the raster value in the Value field and select the row representing the line features. In this example, the row with value 1 is selected.
The selected row in the attribute table representing the line features in the image
    1. In the Geoprocessing pane, click Back The Back icon.
    2. Search for and click Raster to Polyline (Conversion Tools).
    3. In the Raster to Polyline pane, for Input raster, select the reclassified raster layer from the drop-down list. Toggle Use the selected records on.
    4. For Output polyline features, specify a name and location to export the feature class.
    5. Click Run.
The configured Raster To Polyline pane
  1. Use the following tools to refine the extracted line features, and simplify or smooth the geometry.
Note:
The Snap, Simplify Line, and Smooth Line tools require an ArcGIS Pro Standard or Advanced license.
  • Use the Snap tool to connect the line vertices by a specified distance.
  • Use the Simplify Line tool to reduce the number of vertices and simplify the shape of the line feature.
  • Use the Smooth Line tool to refine jagged edges and create a smoother polyline.
Note:
If the lines are not sufficiently distinct for automated extraction, manually digitize or modify the lines over the georeferenced scanned map. Refer to ArcGIS Pro: Create features and ArcGIS Pro: Modify features for instructions. Additionally, apply topology rules to validate the connectivity of the lines. Refer to ArcGIS Pro: Create a topology and ArcGIS Pro: Validate and fix geodatabase topology to create topology rules and correct topology errors for the line features.
  1. Use one of the following tools to merge the refined line features into one feature.
  • Use the Merge tool to combine the line features into a single feature.
  • Run the Dissolve tool without specifying the Dissolve Fields parameter.
Note:
The attribute table can also be populated with the relevant information. Refer to ArcGIS Pro: Create and manage fields to create fields and add attributes to the line features.

The map below shows the line features extracted from the scanned map and merged into a single feature class.

The extracted line features on the map

Article ID: 000034497

Software:
  • ArcGIS Pro 3 3
  • ArcGIS Pro 3 2
  • ArcGIS Pro 3 4

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

Related Information

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options