Creating Contours in QGIS from a DEM
The gdal
contour tool only works on an entire DEM, so if this is not desired, the raster needs to be clipped first.
- Clip the Raster using the clip tool from the processing toolbox.
- From the QGIS toolbar, choose Raster->Extraction->Contour, using the appropriate interval for the desired contorurs. This will be in the units of the projection of the raster. For DEMs downloaded from OGRIP, these units will be in feet.
- The resulting contours will be very detailed. To get a traditional smoothed topographic line the contours first need to be simplified, then this simplified output will be smoothed.
- Use the
Simplify
tool, using a tolerance of 2. Try a higher simplification tolerance if needed. - Use the
Smooth
tool using 5 iterations and defaults for all other settings. Use higher iterations if needed.
I attempted the recommendation below but it error out.