QGIS Contour Map: Make Lines From a DEM and Check Field Usability

A QGIS contour map begins with an elevation raster, not with a magic line-drawing command. The software can create a plausible web of contour lines from a Digital Elevation Model (DEM), but the output is only as defensible as the input height data, interval and map context. Hikers need an additional check: are the roads, paths, watercourses and permitted access still correct? This tutorial treats QGIS as a map-making and verification tool. It gives you a controlled workflow for contour generation, plus a refusal point when missing height cells or an unsuitable source would make the result misleading.

Choose a DEM with documented height units

Download an elevation raster whose metadata identifies the source and vertical units. USGS 3DEP offers several U.S. elevation products; another region may require a different government or research provider. Inspect the raster information in QGIS before running any processing algorithm. A numeric value of 150 could mean meters or feet, and a line labeled 150 without a unit can mislead a hiker. Do not mix rasters from unrelated height references or resolutions without checking the transformation and mosaicking procedures. Keep the source citation with the project and exported map.

Review practical navigation guides
Use additional OutGeo navigation references to verify your route and fallback tools.

Distinguish raster cell size from contour interval

The DEM is a grid of sampled or modeled heights, whereas a contour interval is the difference in elevation between successive line levels. A 10-meter interval does not mean that your input cells are 10 meters wide. Setting an extremely small interval on a coarse DEM can create crowded, wobbly lines without revealing additional real terrain. Choose an interval that matches source quality, mapped relief and print scale. Test one representative hill before processing a large region. If contours merge into a black mass on paper, revise presentation rather than claiming extra precision.

Open the documented QGIS Contour tool

The QGIS GDAL provider offers Contour under Raster and Extraction, with a processing algorithm identified as gdal:contour. Point Input layer to the elevation raster and select the height band described by its metadata. Set Interval in the same units as the raster elevations. Optionally give the height attribute a sensible name such as ELEV and save the result to a durable file rather than a temporary layer. Do not confuse this line output with Contour Polygons, which produces filled elevation bands for different cartographic uses.

Illustrated physical source parts and data used to check qgis contour map

Inspect NoData before the first export

An empty raster cell is not necessarily a sea-level valley. QGIS provides explicit NoData handling and a separate option to treat all pixel values as valid. Leave that option off unless the dataset documentation truly supports it. Zoom into the margins, water bodies and data gaps where thin closed loops or broken fragments appear. If a void is mistakenly processed as a real zero-height area, generated lines can form a fictional cliff or basin. Recheck the raster mask and correct the source instead of drawing fake connecting contours over an unknown region.

Keep projection and height reference distinct

A map CRS governs where geometry appears on the page and how horizontal coordinates are interpreted; vertical reference and elevation units describe heights. They are related but not interchangeable. Reproject a vector display deliberately if you need measured grid distances, and avoid treating longitude degrees as feet or meters. Before exporting, compare a known point or landmark with an official map and check that your contour layer, stream layer and base map actually align. If layers shift by a visible amount, do not print a route sheet until you identify the coordinate or datum problem.

Style a readable contour hierarchy

Light, thin intermediate contours should support the map without overwhelming paths. Highlight selected index contours using verified height attributes and add labels that do not cross critical junctions. Choose a north arrow and scale bar only after finalizing page scale and CRS. A trail map needs clear route symbols and access information; contour lines alone cannot tell whether a ridge is walkable. Preview the exported PDF on a phone-sized display and at actual printer size. If a safety-critical path disappears beneath contours, simplify the symbology before delivery.

Illustration showing how mapped tools and field references connect for qgis contour map

Check three physical features against references

Pick a broad summit, a drainage line and a saddle or pass in your study area. Compare the generated shapes with an authoritative topographic map, recognizing that source resolutions may differ. Contour V-shapes in a valley should make geomorphic sense; a closed loop may represent a knoll or depression depending on surrounding values. Use this as an anomaly check, not as proof that both maps are exact. If the two sources differ substantially, inspect the source DEM, temporal changes and contour interval before concluding that a trail follows either line.

Check the route planning basics
Compare this specific workflow with nearby guidance before relying on it outdoors.

Add current access as a separate authority

Contours do not encode opening hours, trail closures, bridge inspections or private land. Import current permitted trails from an appropriate authority and verify that their sources are up to date. Keep old basemap features visually distinct when comparing historical and modern layers. Include the date of the route source in your project notes. If QGIS shows a clean path in a place where a ranger or park notice says the trail is closed, the notice wins. Exporting a polished map does not override land management or required permits.

Export a print and offline verification copy

Export a PDF with a legible legend, explicit contour interval, height units, north indication, source credits and page scale. Print at the intended size; automatic fit-to-page can change the apparent distance of an otherwise accurate scale bar. Keep a separate digital map with offline access and plan a fallback. Try reading the most complex junction at normal viewing size before carrying the map. If labels or contours are unreadable, create an inset at an appropriate scale instead of shrinking the full region further.

Physical comparison and decision points for a safer qgis contour map workflow

Record whether the map passes field checks

The contour project passes when the DEM source and units are documented, NoData artifacts are addressed, the chosen interval is readable, coordinate layers agree and the route/access layer is independently checked. It fails when any input is unknown or the output invites a user to confuse generated lines with verified trails. Do not use a script or processing-success notification as evidence of real-world accuracy. The useful deliverable is a transparent map with provenance and known limitations, ready to accompany—not replace—a current trail guide.

How We Research and Check Sources

This guide combines the official, dated sources linked below with an original illustrative workflow. Diagram geometry is schematic, not a surveyed map or a real-world field test. We reviewed its search intent against known OutGeo titles and drafts; this does not confirm every unpublished WordPress item. Readers should follow current land-manager access rules, software instructions and emergency directions whenever they differ from a general example.

Source: https://docs.qgis.org/3.44/en/docs/user_manual/processing_algs/gdal/rasterextraction.html — Official QGIS guide specifies input raster band, contour interval, field names and NoData handling. Checked 2026-11-08.

Source: https://gdal.org/en/stable/programs/gdal_contour.html — GDAL documents contour vectors produced from raster elevation data. Checked 2026-11-08.

Source: https://www.usgs.gov/faqs/what-types-elevation-datasets-are-available-what-formats-do-they-come-and-where-can-i-download — USGS describes elevation DEM formats and source resolutions. Checked 2026-11-08.

Source: https://www.usgs.gov/faqs/what-a-topographic-map?qt-news_science_products=0 — USGS explains that a useful topo map includes more than contour lines. Checked 2026-11-08.

Editorial disclosure: This is independent educational material. No paid tests or affiliate relationships are claimed for these items. Read the OutGeo affiliate disclosure for the site policy.

Does QGIS invent elevation measurements?

No. It extracts interpolated contours from the DEM you supply; accuracy depends on that source.

Is an interval of 5 always better than 20?

No. The useful interval depends on DEM quality, relief and final map scale.

Can I use contour polygons instead of lines?

They serve different cartographic purposes; choose Contour for elevation isolines.

Why do contour lines break?

Input NoData gaps, tile edges or masking may create discontinuities; inspect the raster.

Can I hike using only QGIS contours?

No. Add a current authorized route map, known access points and a navigation backup.

Continue with verified navigation planning
Choose another relevant guide and confirm your actual route before heading outdoors.
Scroll to Top