How to digitize contour line in an efficient way

fgallicefgallice Global Mapper UserPosts: 2
Hello everyone, I was wondering if there is an easy and fast workflow to digitize contour from a raster image without extracting the line from the image. I want to use the trace mode line and then convert the line to points with a contour value to be able to grid?

Best Answer

  • sphillipssphillips Posts: 56
    Answer ✓
    1. Make sure you have assigned the elevations first then (Vertex Editing > Edit Feature Vertices)
    2. Select the lines
    3. Right-click
    4. Advanced Feature Creation Options > Create Point Features Spaced Along Selected Features

    Alternatively, if you have reasonably clean contours you may be able to convert them to lines by creating area features based on the contour colour values and then converting those to center lines:

    1. Right-click the raster layer
    2. Create Area Features from Equal Values in Selected Layer
    3. Choose Only Create Areas for Selected Colors and enter the RGB value of your contour e.g. 0,0,0 for black
    4. Select the newly created area features
    5. Right-click > Move/Reshape Feature(s) > SIMPLIFY
    6. Right-click > Move/Reshape Feature(s) > SMOOTH
    7. Right-click > Advanced Feature Creation Options > Create Area Skeletons/Center Lines
    8. Join any gaps in the new contour lines:
    9. Right-click > Crop/Combine/Split Functions > COMBINE 
    10. Repeat steps 5 & 6 to reduce the points and smooth

    This is an example I created using the above workflow - took around 10-15 minutes. Using the Image Swipe Tool I have shown the original raster on the right and the results of the process above on the left. The image below that shows the raster below the new contour lines.






    fgallice
Sign In or Register to comment.