[pdal] How to generate a colored tif (RGB in 3 bands each) from colored las file

Peter Lim peter.lim at gpslands.com
Thu Sep 29 23:33:44 PDT 2022


Thank you Howard & James!

Is there any plan to add in more options to writers.gdal to output such
colored tif file...


Thank you.

Best Regards,

Peter Lim
GPS Lands (S) Pte Ltd

-----Original Message-----
From: Howard Butler [mailto:howard at hobu.co]
Sent: Wednesday, 28 September 2022 8:44 pm
To: James Klassen
Cc: Peter Lim; pdal
Subject: Re: [pdal] How to generate a colored tif (RGB in 3 bands each) from
colored las file



> On Sep 28, 2022, at 7:11 AM, James Klassen <klassen.js at gmail.com> wrote:
>
> One idea, probably not optimal:
>
> Use 3 writers.gdal stages and output each band to a different file.  Then
use GDAL to assemble the three files into a single TIFF.  (gdalbuildvrt
-separate, followed by gdal_translate to make a tiff from the VRT).

This is what I've done in the past, but one of the issues is PDAL's
writers.gdal was interpolating using values outside the pixel, which is not
ideal for picking pixel colors. For upcoming PDAL 2.5.0, we've added
'binmode' to writers.gdal [1], which will cause it to only consider points
*inside* the pixel. This makes for better output in situations like this one
(or making Intensity/Classification rasters).

Howard

[1] https://github.com/PDAL/PDAL/pull/3840=


--
This email has been checked for viruses by Avast antivirus software.
www.avast.com
This e-mail is intended only for the named addressee(s) and may contain confidential and/or privileged information. If you are not the named addressee (or have received this e-mail in error), please notify the sender immediately. The unauthorized use, disclosure, distribution or copying of the contents in this e-mail is prohibited. Thank you.


More information about the pdal mailing list