LiDAR and terrain in QGIS
This exercise starts with one specific source: the New Zealand LiDAR 1m DEM published by Toitū Te Whenua LINZ. A DEM is a raster of ground elevation. For ordinary terrain analysis, use the DEM rather than starting with the raw LiDAR point cloud.
Direct dataset: New Zealand LiDAR 1m DEM
LINZ overview: Access elevation data
1. Download only the area you need
The national 1 m DEM is very large. Do not try to download all of Aotearoa for a local exercise.
- Open New Zealand LiDAR 1m DEM.
- Sign in to LINZ Data Service if the site asks you to sign in before exporting.
- Click Map + if the dataset is not already displayed on the LDS map.
- Zoom to the whenua, marae locality, awa reach or other study area you want to analyse.
- Click Crop above the map.
- Choose Crop by rectangle.
- Draw or resize the crop rectangle around the study area. Include a small buffer around the edges so later terrain operations are not cut off exactly at the boundary.
- Click Export.
- Choose a raster download format that preserves the DEM, normally GeoTIFF where offered.
- Choose NZGD2000 / New Zealand Transverse Mercator 2000, EPSG:2193 if the export dialog asks for a projection.
- Start the export and download the resulting ZIP/file.
- Extract the download into your project's
01_source/elevation/folder. - Keep this original download unchanged.
If LDS changes the wording of a button, the current official download process is documented at Getting started with LDS.
2. Add the DEM to QGIS
- Open the QGIS project.
- Choose Layer → Add Layer → Add Raster Layer….
- Click the browse button beside Raster dataset(s).
- Select the downloaded
.tifDEM file. - Click Add, then close Data Source Manager.
- Right-click the DEM in the Layers panel and choose Zoom to Layer(s).
You should see a greyscale terrain raster. If QGIS asks you to choose a CRS for a LINZ national 1 m DEM file that should already contain CRS information, stop and inspect the file metadata rather than guessing.
3. Check the DEM before analysing it
- Right-click the DEM and choose Properties.
- Open Information.
- Confirm the horizontal CRS is EPSG:2193 for the national product.
- Record the pixel size. The national product is nominally 1 m.
- Record the source dataset and access date in the project source register.
- Record the vertical datum as NZVD2016 for the current national LINZ product. If you use an older regional dataset instead, read that dataset's metadata because the vertical datum can differ.
The ordinary 2D CRS shown by QGIS does not tell the whole vertical-reference story. Keep the vertical datum in your project notes.
4. Clip the DEM to your exact study boundary
If the LDS crop already produced a small rectangle, you can work directly with it. If you have a polygon for the actual whenua or catchment and want a tighter analysis raster:
- Make sure the boundary polygon is loaded in QGIS.
- Open Processing → Toolbox.
- Search for
Clip raster by mask layer. - Open GDAL → Raster extraction → Clip raster by mask layer.
- Set Input layer to the downloaded LINZ DEM.
- Set Mask layer to the study-area polygon.
- Tick Match the extent of the clipped raster to the extent of the mask layer if available.
- Save the result as
02_working/dem_study_area.tif. - Click Run.
Keep the original LINZ DEM in 01_source. Use the clipped copy for the remaining steps.
5. Create hillshade
- Open Processing → Toolbox.
- Search for
Hillshade. - Open the GDAL hillshade algorithm.
- Set Input layer to
dem_study_area.tif. - Leave the initial azimuth and altitude at their defaults for the first output.
- Save the result as
02_working/hillshade.tif. - Click Run.
Put the hillshade below your important vector layers. Hillshade is a visual derivative. It is not a new source of elevation values.
6. Create slope in degrees
- In Processing Toolbox, search for
Slope. - Open the GDAL slope algorithm.
- Set Input layer to
dem_study_area.tif. - Make sure the output is in degrees, not percent, for this exercise.
- Save it as
02_working/slope_degrees.tif. - Click Run.
To inspect a slope value, select Identify Features and click the slope raster.
7. Style the slope layer
- Double-click
slope_degreesin the Layers panel. - Open Symbology.
- Use Singleband pseudocolor.
- Choose a small number of classes appropriate to the exercise.
- Put
degreesin the legend or layer name so nobody later reads the numbers as percent slope.
For a papakāinga teaching exercise, you might display 0–5°, >5–10°, >10–15° and >15° as comparison bands. Those bands are teaching categories, not automatic engineering or planning thresholds.
8. Create contours
- Open Processing Toolbox and search for
Contour. - Open the GDAL contour algorithm.
- Set the input raster to
dem_study_area.tif. - Set an interval suitable for the scale. Start with
2metres for a small local example and adjust if the lines are too crowded or too sparse. - Set the elevation attribute name to
ELEVif QGIS asks for one. - Save the output into
02_working/course.gpkgor another project GeoPackage ascontours_2m. - Run the tool and inspect the result.
The contour interval is a display/derivation choice. It is not the stated accuracy of the source elevation data.
9. Check the outputs
Before using the terrain layers in a hui map or analysis, confirm:
- the original LINZ download is still untouched in
01_source - the project and terrain data align with parcels and imagery
- the source is recorded as the New Zealand LiDAR 1m DEM, not simply
DEM - EPSG:2193 and NZVD2016 are recorded
- slope units are stated
- filenames distinguish source data from derived data
A useful final layer stack is:
study boundary / whenua
parcels and other vector context
contours_2m
slope_degrees or hillshade
LINZ aerial basemap
Continue to Terrain derivatives or the QGIS practical course.
Last reviewed: 27 August 2026