Las2BivariateRasterMosaic¶
Las2BivariateRasterMosaic converts a lidar survey, as large as a region, into a mosaic of raster tiles. The value of each cell comes from a quadratic surface fitted to the points around it: a smooth surface model, which keeps the slopes and the shape of the crowns, or a map of the intensity. The tiles can be processed in parallel, and the mosaic opens in a GIS as a single raster.
Details¶
The area is divided in square tiles of the given size, each written as a GeoTIFF named tile_column_row.tiff in the output folder; a tile with 100 points or less is not written, and an existing tile is not overwritten. The folder then gets the files of an image mosaic of all the tiles, that GIS can open as a single raster, and a style with a color table between the minimum and maximum value.
The value of each cell comes from the points within the buffer of cells around it, the cell included: a bivariate quadratic surface z = a x² + b y² + c xy + d x + e y + f is fitted to them with least squares, and evaluated at the center of the cell. The surface needs at least 6 points, as many as its parameters; the value is limited between the minimum and the maximum of the points read. Fitting a surface instead of averaging the points keeps the slopes and the shape of the crowns, and fills the cells without points.
Parameters¶
Converts lidar points into a mosaic of raster tiles, each cell from the quadratic surface fitted to the points around it: a smooth surface model, or a map of the intensity.
Toolbox folder: Lesto › raster
Status: Draft
Keywords: las, lidar, raster, bivariate, mosaic
Authors: Andrea Antonello, Silvia Franceschi
Class: org.hortonmachine.lesto.modules.raster.Las2BivariateRasterMosaic
Inputs
Parameter |
Type |
Unit |
Default |
Description |
|---|---|---|---|---|
|
LAS file |
The lidar data, with a prj file: a las file, the index file of a folder of las files created by LasIndexer or a las database. |
||
|
vector file |
An optional vector of the area of interest: its bounds are used. If not supplied, the bounds of the data are used. |
||
|
double |
m |
|
The size of the square tiles. |
|
double |
m |
|
The resolution of the tiles. |
|
int |
|
The distance, in cells, around a cell within which the points are used for its value. |
|
|
Integer |
|
The return to use, as 1 for the first returns. If not supplied, all the returns are used. |
|
|
int |
|
The number of tiles processed at the same time. |
|
|
boolean |
|
If true, the intensity of the points is used instead of their elevation. |
|
|
int |
|
The minimum number of points around a cell to compute its value: with fewer, the cell stays empty. |
Outputs
Parameter |
Type |
Unit |
Description |
|---|---|---|---|
|
output folder |
The folder of the tiles and of the mosaic. |
Example¶
The surface of the first returns of the sample plot, in tiles of 100 m: the plot fits in the first one, tile_0_0.tiff:
import org.hortonmachine.lesto.modules.raster.Las2BivariateRasterMosaic
// the folder with the lidar survey: change it to yours
var folder = "/data/flanginec/"
// the surface of the first returns in tiles of 100 m with cells of 0.5 m, each cell from
// the quadratic surface fitted to the points within 2 cells; the plot fits in one tile
new File(folder + "las_mosaic").mkdirs()
var mosaic = new Las2BivariateRasterMosaic()
mosaic.inLas = folder + "uni_bz_plot777.las"
mosaic.pTilesize = 100.0
mosaic.pRes = 0.5
mosaic.pBuffer = 2
mosaic.pImpulse = 1
mosaic.outFolder = folder + "las_mosaic"
mosaic.process()
The surface of the first returns of the plot, from 1899 to 1949 m: the crowns of the trees over the ground, smooth and without holes.¶