Las2RasterInterpolator

Las2RasterInterpolator interpolates the points of a lidar survey over the ground into a raster, with inverse distance weighting, on the grid of an elevation model. It interpolates the height of the points over the ground, for a model of the height of the canopy, or their elevation, for a model of its surface. Unlike LasOnRasterMapper, it leaves no holes.

Details

Only the points higher than the threshold over the elevation model are interpolated: with the default threshold of 0, the points over the ground. Each cell gets the average of the points within 10 m of it, weighted by the inverse of their distance. With the first returns and the normalization, the raster is a model of the height of the canopy, with its elevation a model of its surface.

The points on the ground are, with their errors, half over and half under the elevation model: in the open areas, the raster is interpolated from the few ground points over it and from the canopy around. Use a threshold of some decimeters to keep only the vegetation.

Parameters

Interpolates the points of a lidar survey over the ground into a raster, with inverse distance weighting: the height of the canopy over the ground or the surface of the canopy.

Toolbox folder: Lesto › raster
Status: Draft
Keywords: raster, IDW, interpolation, lidar
Authors: Andrea Antonello, Silvia Franceschi
Class: org.hortonmachine.lesto.modules.raster.Las2RasterInterpolator

Inputs

Parameter

Type

Unit

Default

Description

inIndexFile

LAS file

The lidar data: a las file, the index file of a folder of las files created by LasIndexer or a las database.

inDtm

raster file

The elevation model of the ground: it gives the area, the grid and the ground under the points.

doNormalize

boolean

true

If true, the height of the points over the ground is interpolated, if false their elevation.

pXres

Double

The x resolution of the raster. If not supplied, the one of the elevation model is used.

pYres

Double

The y resolution of the raster. If not supplied, the one of the elevation model is used.

pThreshold

double

m

0

The minimum height over the ground of the interpolated points.

pImpulse

Integer

1

The return to use, as 1 for the first returns. If not supplied, all the returns are used.

Outputs

Parameter

Type

Unit

Description

outRaster

output file

The interpolated raster.

Example

The height of the canopy of the sample plot, from the first returns:

import org.hortonmachine.lesto.modules.raster.Las2RasterInterpolator

// the folder with the lidar survey: change it to yours
var folder = "/data/flanginec/"

// the height of the canopy: the first returns over the ground, with their height
// over the elevation model, interpolated on its grid
var interpolator = new Las2RasterInterpolator()
interpolator.inIndexFile = folder + "uni_bz_plot777.las"
interpolator.inDtm = folder + "dtm_777.tif"
interpolator.doNormalize = true
interpolator.pImpulse = 1
interpolator.outRaster = folder + "chm_idw.tif"
interpolator.process()
The height of the canopy of the plot, up to about 20 m: the round crowns of the trees, smoother than the highest points of each cell, and the road at the north-west corner.

The height of the canopy of the plot, up to about 20 m: the round crowns of the trees, smoother than the highest points of each cell, and the road at the north-west corner.