[pdal] create mode raster from lidar data

Howard Butler howard at hobu.co
Tue Mar 21 09:00:43 PDT 2023



> On Mar 21, 2023, at 10:44 AM, David Arango hotmail <davidfernandezarango at hotmail.com> wrote:
> 
> Hello everyone. 
> 
> I wanted to ask a question. I need to generate a raster whose pixels have the mode value of the LiDAR points that fall on it. I tried to do it with writers.gdal but it doesn't have 'mode' option, only 'min', 'max'... 

There is no 'mode' support in writers.gdal, and having one would have some significant performance considerations.

You will need to write your own using the PDAL Python extension https://github.com/PDAL/python/ but it should be quite straightforward.

Howard


More information about the pdal mailing list