How to Create Contour files (DWG/DXF/SHP) From DEM (GeoTIFF) Using QGIS or Global Mapper


This article will walk you through creating contour files from a DEM using either QGIS or Global Mapper.

QGIS

If you haven't already, install QGIS on your computer. If you are using a Windows computer, it is recommended to download the long-term release (most stable) standalone installer. 
1. Launch QGIS.
2. Import the DEM file by clicking Layer > Add Layer > Add Raster Layer.
QGIS Add Raster Layer.png
3. To generate the contours, navigate to Raster > Extraction > Contour, then provide:
  • Input file
  • Output filename for the contour
  • Desired contour interval
QGIS_Extraction.png
Once they're filled in, click OK.
4. Right-click on the generated contour layer and click Save As... (the layers panel is on the left of the window).
QGIS Save As.png

5. This will prompt the dialogue box, which enables you to:

a. Select your desired file format (DXF, SHP, KML, GML),
b. Enter a filename for the contour data, and
c. Choose the coordinate reference system (CRS) of the output file.
QGIS_Vector.png

6. Click OK. The generated contour file is now saved in your chosen directory.

Global Mapper

 1. Launch Global Mapper.

2. Import your data file by navigating to File > Open Data File.

GlobalMapper_File.png

3. Once the elevation file is imported, create contour lines by navigating to Analysis > Generate Contours (from Terrain Grid).

GlobalMapper_GenerateContours.png

4. In the Contour Generation dialogue box, enter
a. Contour filename,
b. Contour interval and units (meters or feet),
c. Minor and Major contour interval, and
d. Maximum and Minimum range of elevations and units (meters or feet).
Once all the parameters are set, click OK. 

GlobalMapper_ContourOptions.png

5.  Once the contour has been generated, navigate to the Current Workspace, right click the contour file layer > Layer > Export.
Global Mapper Export Layers.png

6. Choose your desired file format and click OK.

7. The generated contour file is now saved in your chosen directory.


Still need a hand?

These articles are written to get you where you need to go, but if you can't find what you're looking for, our support team is here to help. Reach out anytime via the question mark in the bottom left of your portal.

Explore what's coming next

MapLabs is our early access program where you can try what’s coming next and share feedback with our team. Learn how to join.

Related to

Was this article helpful?

0 out of 0 found this helpful

Have more questions? Submit a request