[pdal] How to calculate point cloud density?

Howard Butler howard at hobu.co
Fri Jan 5 13:54:50 PST 2024



> On Jan 4, 2024, at 4:50 PM, Ulises Ibarra via pdal <pdal at lists.osgeo.org> wrote:

If you don't need the hexagons, use writers.gdal.binmode=true and then capture the 'count' band from that raster. It should run quickly and you can control the pixel size. 

The following pipeline does both:

> "pipeline":[
>     {
>         "type":"readers.las",
>         "filename":"myfile.laz"
>     },
>     {
>         "type":"filters.hexbin",
>         "edge_length":10,
>         "density":"hexagons-are-awesome.shp"
>     },
>     {
>         "type":"writers.gdal",   
>         "filename":"output.tif",
>         "dimension":"Z",
>         "data_type":"Float32",
>         "binmode":true,
>         "output_type":"count",
>         "resolution": 1
>     }
>   ]
> }








More information about the pdal mailing list