Select to view content in your preferred language

Generate Contour Lines from Georeferenced Map Image

108
4
2 weeks ago
Labels (1)
MattieFriday1
Emerging Contributor

Hello! I'm trying to figure out a way around having to hand trace contour lines on a Georeferenced map image with contour lines, which will be used to create a raster elevation surface.

Steps so far: 

-Select the image in contents pane-->right click-->data-->export raster

-Raster to Polygon or Raster to Polyline

-The tools will generate polygons from the contour lines, but each line is over 1000 different small polygons.

I have also tried the Generate Trend Raster tool, but had the same outcome.

Thanks for the help!

0 Kudos
4 Replies
  1. Are you hand-digitizing the contour lines, or attempting to programmatically detect them in the georeferenced image?
  2. When you say "small polygons", what exactly do you mean?  Are you able to share a screenshot of the issue?

This sounds to me like you're feeding in a "visual" raster that has contour lines that would be intelligible for a human looking at the image, but not for something like Raster to Polygon.  In that case, you'd be getting polygons based on what boundaries the tool detected in the raster, which could theoretically have nothing to do with the contours.

------------------------------
M Reed
"The pessimist may be right oftener than the optimist, but the optimist has more fun, and neither can stop the march of events anyhow." — Robert A. Heinlein, in Time Enough for Love
0 Kudos
MattieFriday1
Emerging Contributor

M- I am hand digitizing the contour lines after georeferencing the image, but was attempting to programmatically detect them in hopes there is a fast way that clicking on every contour line that I need.

Re: "small polygons" if you zoom in to one of the contour lines that was extracted from the image you see that it's not actually a solid line, but 1000s of small connected polygons. Which makes me think your point about the "visual raster" is correct.

I mostly do this with smaller state-sized areas so a extraction solution may be more tedious than tracing the contour lines. Wishful thinking!

0 Kudos
DavidPike
MVP Frequent Contributor

It's tricky and maybe not worth the effort depending on your goals.  I'd look first to see if you can identify certain colours which are only used for the contours.  This is probably hopeful but worth a shot. 

Then https://pro.arcgis.com/en/pro-app/latest/tool-reference/spatial-analyst/reclassify.htm, setting the ...

https://pro.arcgis.com/en/pro-app/latest/tool-reference/conversion/raster-to-polyline.htm Raster to Polyline (use simplified) to get the contours.

You'd then have to label/attribute the contours manually and probably do alot of manual cleanup editing as the colours are probably used elsewhere in the map, and for the original raster contour labels.

I'd recommend looking for a DEM and generating some fresh contours off those and see how they line up instead.

0 Kudos
MattieFriday1
Emerging Contributor

Thank you, David! After trying a few different ways I came to the same conclusion about it being not worth the effort, particularly if it is a small area. 

I'll try your recommendations and see if it works!

0 Kudos