LasPointDensityExtractor¶
LasPointDensityExtractor counts the points of a LAS file in squares of a given size: their number for each return, their total and their density per square meter. It shows where a survey is dense enough for its use, and how much of the laser goes through the vegetation.
Details¶
The squares start from the south-west corner of the bounds of the file and cover them all: the last column and row can stick out of the data, and their density, on the whole area of the square, is lower than the true one. The points on the borders between squares go to the square on their north-east, the ones on the north and east bounds of the data to the last squares.
The returns from 1 to 5 are counted each in its field; points with a return number out of this range count only in the total. The squares without points are not written.
The density shows where a survey is dense enough for a given use, as an elevation model of a given resolution, and where the flight lines overlap. The first returns are the first surface hit, the canopy where there is forest, and the following ones come from under it: their counts show how much the laser goes through the vegetation.
Parameters¶
Creates a vector of squares over a las file, with the number of points of each return and their density in each square.
Toolbox folder: Lesto › utilities
Status: Draft
Keywords: las, density, vector
Authors: Andrea Antonello, Silvia Franceschi
Class: org.hortonmachine.lesto.modules.utilities.LasPointDensityExtractor
Inputs
Parameter |
Type |
Unit |
Default |
Description |
|---|---|---|---|---|
|
LAS file |
Las file path. |
||
|
double |
m |
|
The size of the square cells of the grid, starting from the south-west corner of the data. |
Outputs
Parameter |
Type |
Unit |
Description |
|---|---|---|---|
|
output file |
The output squares of the grid that have points, with the count of the points of each return (imp1 to imp5), their total and their density in points per square unit. |
Example¶
The density of the sample survey in squares of 5 m:
import org.hortonmachine.lesto.modules.utilities.LasPointDensityExtractor
// the folder with the lidar survey: change it to yours
var folder = "/data/flanginec/"
// the count of the points, by return, in squares of 5 m
var density = new LasPointDensityExtractor()
density.inFile = folder + "uni_bz_plot777.las"
density.pGridStep = 5.0
density.outFile = folder + "las_density.shp"
density.process()
The squares of 5 m colored by their density, mostly between 6 and 12 points per square meter, denser in the north-east of the plot, up to 15; the thin last column and row on the east and north border, outside of most of the data, have almost no points.¶