Select to view content in your preferred language

Raster to polyline extraction

371
2
03-10-2026 10:55 AM
ShawnWampler
Occasional Contributor
 

HI Everyone,

 

I have a raster that I'm trying to extract the dashed line as scientifically as possible.  Raster to Polyline is giving us very jagged segments.  Has anyone done this before and is there away to link all the segments into one line? Thanks!

 

linkedin.jpg

Tags (3)
2 Replies
KhalidDuri1
Esri Contributor

Hi Shaun,

In Pro 3.7, there is a new tool called Extract Scanned Lines that can achieve what you are aiming to do.  The tool is designed to handle raster imagery created from scanned maps and diagrams.  It detects linear features from the image and has options to indicate how wide the lines can be in pixel units and whether the line can have gaps, and how wide those gaps can be.  The result is a centerline feature that constructs a smooth line and approximates curves and corners based on configurable tolerance values. 

The tool requires the image to be a single band integer raster.  The image from your screenshot could be reclassified to separate the darker dashed lines from the other lines so that the dashed lines can be uniquely extracted without being merged with the other linear features.

If you are interested in trying out the new tool, consider signing up for the ArcGIS Pro Early Adopter Community so that you can have access to Pro 3.7 Beta and let us know how the tool works for you. You can find out about when the beta is available here, which should be sometime in the next week or so:
https://link.esri.com/ProRoadmap 

Regards,
Khalid

0 Kudos
Charlie_Kaufman
Regular Contributor

I've done similar projects where I had scanned drawings that I wanted to turn into line files.  If your image is georectified, it might be simple enough to create a feature class and then hand digitize the dashed line.  This way you can create a solid line, and you can control the number of vertices giving you shape control.

0 Kudos