How to digitize contour line in an efficient way
fgallice
Global Mapper User
in Raster Data
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?
Answers
-
- Make sure you have assigned the elevations first then (Vertex Editing > Edit Feature Vertices)
- Select the lines
- Right-click
- 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:- Right-click the raster layer
- Create Area Features from Equal Values in Selected Layer
- Choose Only Create Areas for Selected Colors and enter the RGB value of your contour e.g. 0,0,0 for black
- Select the newly created area features
- Right-click > Move/Reshape Feature(s) > SIMPLIFY
- Right-click > Move/Reshape Feature(s) > SMOOTH
- Right-click > Advanced Feature Creation Options > Create Area Skeletons/Center Lines
- Join any gaps in the new contour lines:
- Right-click > Crop/Combine/Split Functions > COMBINE
- 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.
Categories
- 12.7K All Categories
- 5.6K Features Discussion
- 342 Downloading Imagery
- 1.3K Elevation Data
- 380 Georeferencing Imagery Discussion
- 628 GM Script Language
- 53 User Scripts
- 113 GPS Features
- 414 Projection Questions
- 819 Raster Data
- 1.3K Vector Data
- 6.6K Support
- 177 Announcement and News
- 908 Bug Report
- 558 SDK
- 1.2K Suggestion Box
- 3.7K Technical Support
- 562 Other Discussion
- 129 GIS Data Sources
- 27 Global Mapper Showcase
- 233 How I use Global Mapper
- 107 Global Mapper Forum Website