<div dir="auto">One idea, probably not optimal:</div><div dir="auto"><br></div><div dir="auto">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). </div><div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Sep 28, 2022 at 02:44 Peter Lim <<a href="mailto:peter.lim@gpslands.com">peter.lim@gpslands.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;padding-left:1ex;border-left-color:rgb(204,204,204)">





<div lang="EN-SG" link="blue" vlink="purple">
<div class="m_-3443193511952364290WordSection1">
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">Using writers.gdal, we could specify only 1 dimension for 1 band to output a tif file.<u style="font-family:Calibri,sans-serif"></u><u style="font-family:Calibri,sans-serif"></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><u style="font-family:Calibri,sans-serif"></u> <u style="font-family:Calibri,sans-serif"></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(54,95,145)">However, how do we specify 3 dimensions (Red, Green, Blue) for 3 bands to output a tif file.<u style="font-family:Calibri,sans-serif"></u><u style="font-family:Calibri,sans-serif"></u></span></p></div></div><div lang="EN-SG" link="blue" vlink="purple"><div class="m_-3443193511952364290WordSection1">
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(54,95,145)"><u style="font-family:Calibri,sans-serif"></u> <u style="font-family:Calibri,sans-serif"></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(54,95,145)"><u style="font-family:Calibri,sans-serif"></u> <u style="font-family:Calibri,sans-serif"></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(54,95,145)">Thank you.<u style="font-family:Calibri,sans-serif"></u><u style="font-family:Calibri,sans-serif"></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(54,95,145)"><u style="font-family:Calibri,sans-serif"></u> <u style="font-family:Calibri,sans-serif"></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(54,95,145)">Best Regards,<u style="font-family:Calibri,sans-serif"></u><u style="font-family:Calibri,sans-serif"></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(54,95,145)"><u style="font-family:Calibri,sans-serif"></u> <u style="font-family:Calibri,sans-serif"></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(54,95,145)">Peter Lim<u style="font-family:Calibri,sans-serif"></u><u style="font-family:Calibri,sans-serif"></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><u style="font-family:Calibri,sans-serif"></u> <u style="font-family:Calibri,sans-serif"></u></span></p>
<div style="border-style:solid none none;border-top-width:1pt;padding:3pt 0cm 0cm;border-top-color:rgb(181,196,223)">
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:10pt;font-family:Tahoma,sans-serif">From:</span></b><span lang="EN-US" style="font-size:10pt;font-family:Tahoma,sans-serif"> Paul Harwood [mailto:<a href="mailto:runette@gmail.com" target="_blank" style="font-family:Tahoma,sans-serif">runette@gmail.com</a>]
<br>
<b style="font-family:Tahoma,sans-serif">Sent:</b> Wednesday, 28 September 2022 3:29 pm<br>
<b style="font-family:Tahoma,sans-serif">To:</b> Peter Lim<br>
<b style="font-family:Tahoma,sans-serif">Cc:</b> pdal<br>
<b style="font-family:Tahoma,sans-serif">Subject:</b> Re: [pdal] How to generate a colored tif (RGB in 3 bands each) from colored las file<u style="font-family:Tahoma,sans-serif"></u><u style="font-family:Tahoma,sans-serif"></u></span></p>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<p class="MsoNormal">That would be going from 3D to 2D - you probably need to specify how you want to reduce the dimensions?<u></u><u></u></p>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<div>
<p class="MsoNormal">On Wed, 28 Sept 2022 at 03:55, Peter Lim <<a href="mailto:peter.lim@gpslands.com" target="_blank">peter.lim@gpslands.com</a>> wrote:<u></u><u></u></p>
</div>
<blockquote style="border-style:none none none solid;border-left-width:1pt;padding:0cm 0cm 0cm 6pt;margin-left:4.8pt;margin-right:0cm;border-left-color:rgb(204,204,204)">
<div>
<div>
<div>
<p class="MsoNormal"><span style="color:rgb(54,95,145)">Hi,
</span><u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal"><span style="color:rgb(54,95,145)">May I know is there any way to use PDAL through pipeline to generate a colored tif (RGB in 3 bands each) from colored las file with RGB.</span><u></u><u></u></p>
<p class="MsoNormal"><span style="color:rgb(54,95,145)"> </span><u></u><u></u></p>
<p class="MsoNormal"><span style="color:rgb(54,95,145)">Any help is greatly appreciated.</span><u></u><u></u></p>
<p class="MsoNormal"><span style="color:rgb(54,95,145)"> </span><u></u><u></u></p>
<p class="MsoNormal"><span style="color:rgb(54,95,145)">Thank you.</span><u></u><u></u></p>
<p class="MsoNormal"><span style="color:rgb(54,95,145)"> </span><u></u><u></u></p>
<p class="MsoNormal"><span style="color:rgb(54,95,145)">Best Regards,</span><u></u><u></u></p>
<p class="MsoNormal"><span style="color:rgb(54,95,145)"> </span><u></u><u></u></p>
<p class="MsoNormal"><span style="color:rgb(54,95,145)">Peter Lim</span><u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
<div id="m_-3443193511952364290m_-181906278234876122DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2">
<p class="MsoNormal"><u></u> <u></u></p>
<table border="1" cellpadding="0" style="border-style:solid none none;border-top-width:1pt;border-top-color:rgb(211,212,222)">
<tbody>
<tr>
<td width="55" style="width:41.25pt;border:none;padding:9.75pt 0.75pt 0.75pt">
<p class="MsoNormal"><a href="https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient" target="_blank"><span style="text-decoration:none"><img border="0" height="30" id="m_-3443193511952364290_x0000_i1029" src="https://s-install.avcdn.net/ipm/preview/icons/icon-envelope-tick-round-orange-animated-no-repeat-v1.gif" alt="width="></span></a><u></u><u></u></p>
</td>
<td width="470" style="width:352.5pt;border:none;padding:9pt 0.75pt 0.75pt">
<p class="MsoNormal" style="line-height:13.5pt"><span style="font-size:10pt;font-family:Arial,sans-serif;color:rgb(65,66,78)">Virus-free.<a href="https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient" target="_blank" style="font-family:Arial,sans-serif"><span style="font-family:Arial,sans-serif;color:rgb(68,83,234)">www.avast.com</span></a><u style="font-family:Arial,sans-serif"></u><u style="font-family:Arial,sans-serif"></u></span></p>
</td>
</tr>
</tbody>
</table>
</div>
<p class="MsoNormal">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.
<u></u><u></u></p>
</div>
<p class="MsoNormal">_______________________________________________<br>
pdal mailing list<br>
<a href="mailto:pdal@lists.osgeo.org" target="_blank">pdal@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/pdal" target="_blank">https://lists.osgeo.org/mailman/listinfo/pdal</a><u></u><u></u></p>
</div>
</blockquote>
</div>
</div>
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.
</div>

_______________________________________________<br>
pdal mailing list<br>
<a href="mailto:pdal@lists.osgeo.org" target="_blank">pdal@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/pdal" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/pdal</a><br>
</blockquote></div></div>