LasTriangulation2Dsm¶
LasTriangulation2Dsm creates a surface model from the triangles of the lidar points, without the triangles that join points at very different elevations, as the edge of a roof and the ground under it. It suits the smooth surfaces of the cities, the roofs and the roads, with sharp edges and no slanted walls between them.
Details¶
All the points in the area are triangulated, with a Delaunay triangulation, and each cell gets the elevation of the triangle under its center. The triangles that join points at very different elevations, as the edge of a roof and the ground under it, would draw walls slanted over the cells around: they are removed, and the cells under them stay empty.
The threshold decides what is kept. A small one keeps the smooth surfaces, as the ground, the roofs and the roads, and leaves holes along their edges; on the rough crowns of the trees, it leaves holes everywhere. A larger one keeps the crowns and draws more slanted walls.
Parameters¶
Creates a surface model from the triangulation of the lidar points, without the triangles that span a large difference of elevation.
Toolbox folder: Lesto › raster
Status: Draft
Keywords: triangulation, lidar, dsm
Authors: Andrea Antonello, Silvia Franceschi
Class: org.hortonmachine.lesto.modules.raster.LasTriangulation2Dsm
Inputs
Parameter |
Type |
Unit |
Default |
Description |
|---|---|---|---|---|
|
LAS file |
The lidar data: a las file, the index file of a folder of las files created by LasIndexer or a las database. |
||
|
raster file |
The elevation model that gives the area and the grid of the surface model. |
||
|
Double |
The x resolution of the raster. If not supplied, the one of the elevation model is used. |
||
|
Double |
The y resolution of the raster. If not supplied, the one of the elevation model is used. |
||
|
double |
m |
|
The maximum difference of elevation between the vertexes of a triangle: the triangles with a larger one are removed. |
Outputs
Parameter |
Type |
Unit |
Description |
|---|---|---|---|
|
output file |
The surface model. |
Example¶
The triangles of all the points of the sample plot, without those with more than 3 m of difference of elevation:
import org.hortonmachine.lesto.modules.raster.LasTriangulation2Dsm
// the folder with the lidar survey: change it to yours
var folder = "/data/flanginec/"
// the surface of the triangles of the points, without the triangles with a
// difference of elevation of more than 3 m between their vertexes
var triangulation = new LasTriangulation2Dsm()
triangulation.inLas = folder + "uni_bz_plot777.las"
triangulation.inDtm = folder + "dtm_777.tif"
triangulation.pElevThres = 3.0
triangulation.outRaster = folder + "dsm_triangles.tif"
triangulation.process()
The surface of the triangles: the ground between the trees and the top of their crowns, with holes along the edges of the crowns, where the triangles joined the crowns to the ground, and inside the roughest crowns.¶