pktools
, when built with liblas support, provides functionality to generate DEMs from LAS point clouds. The toolkit provides a program called pklas2img
, which rasterises a LAS/LAZ point cloud using filtering/compositing options. For instance, the following commands would generate a DEM:
pklas2img -i input.las -o output_dem_min.tif -comp min -n z -dx 2 -dy 2 -ot Float32
Where:
comp
is the compositing rule for multiple points in a cell, in this example we use min
, which retains the pulse with the minimum height for each grid cell. The documentation provides the full list of compositing options.
dx
and dy
are the output resolutions
After this step, it is advisable to filter the DEM, which can be done using pkfilterdem
as follows:
pkfilterdem -i output_dem_min.tif -o output_dtm.tif -f promorph -dim 3 -dim 17
Where:
- dim is the maximum filter kernel size
Note, this functionality is also available from the Processing Toolbox in QGIS using pktools
version 2.6.6 (see below):