<div dir="ltr">Hi Mathieu,<div><br></div><div>You don't need to do anything. PDAL will write a LAS file with a properly constructed header. You can use options on the LAS writers if you want to alter some of the header field data.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Aug 31, 2021 at 9:04 AM Mathieu Poulin <<a href="mailto:mathieu.poulin@mvtgeosolutions.com">mathieu.poulin@mvtgeosolutions.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">




<div dir="ltr">
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
Hello everyone,<br>
<br>
I am transitionning to PDAL from libLAS and so far almost everything has been easy to figure out. There is however one thing that I can not find any instructions on how to do, and that is how to write a LAS header in PDAL.<br>
<br>
I've asked the question on Stackoverflow before finding this mailing list, so here is a link to it: <a href="https://stackoverflow.com/questions/68986302/writing-las-header-with-pdal-in-c" id="gmail-m_4152221100209582908LPlnk" target="_blank">https://stackoverflow.com/questions/68986302/writing-las-header-with-pdal-in-c</a>.
 Hopefully, someone here has the answer that I am looking for.<br>
<br>
Thanks in advance,</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
 - Mathieu Poulin<br>
<div>
<div id="gmail-m_4152221100209582908LPBorder_GTaHR0cHM6Ly9zdGFja292ZXJmbG93LmNvbS9xdWVzdGlvbnMvNjg5ODYzMDIvd3JpdGluZy1sYXMtaGVhZGVyLXdpdGgtcGRhbC1pbi1j" style="width:100%;margin-top:16px;margin-bottom:16px;max-width:800px;min-width:424px">
<table id="gmail-m_4152221100209582908LPContainer284556" role="presentation" style="padding:12px 36px 12px 12px;width:100%;border-width:1px;border-style:solid;border-color:rgb(200,200,200);border-radius:2px">
<tbody>
<tr valign="top" style="border-spacing:0px">
<td>
<div id="gmail-m_4152221100209582908LPImageContainer284556" style="margin-right:12px;height:160px;overflow:hidden">
<a id="gmail-m_4152221100209582908LPImageAnchor284556" href="https://stackoverflow.com/questions/68986302/writing-las-header-with-pdal-in-c" target="_blank"><img id="gmail-m_4152221100209582908LPThumbnailImageId284556" alt="" height="160" style="display: block;" width="160" src="https://cdn.sstatic.net/Sites/stackoverflow/Img/apple-touch-icon@2.png?v=73d79a89bded"></a></div>
</td>
<td style="width:100%">
<div id="gmail-m_4152221100209582908LPTitle284556" style="font-size:21px;font-weight:300;margin-right:8px;font-family:wf_segoe-ui_light,"Segoe UI Light","Segoe WP Light","Segoe UI","Segoe WP",Tahoma,Arial,sans-serif;margin-bottom:12px">
<a id="gmail-m_4152221100209582908LPUrlAnchor284556" href="https://stackoverflow.com/questions/68986302/writing-las-header-with-pdal-in-c" style="text-decoration:none" target="_blank">Writing LAS header with PDAL in C++ - Stack Overflow</a></div>
<div id="gmail-m_4152221100209582908LPDescription284556" style="font-size:14px;max-height:100px;color:rgb(102,102,102);font-family:wf_segoe-ui_normal,"Segoe UI","Segoe WP",Tahoma,Arial,sans-serif;margin-bottom:12px;margin-right:8px;overflow:hidden">
I am working on an application that writes LAS files from scratch based on lidar data. Previously, the application was built with LibLAS and it worked quite well. However, LibLAS has been discontin...</div>
<div id="gmail-m_4152221100209582908LPMetadata284556" style="font-size:14px;font-weight:400;color:rgb(166,166,166);font-family:wf_segoe-ui_normal,"Segoe UI","Segoe WP",Tahoma,Arial,sans-serif">
<a href="http://stackoverflow.com" target="_blank">stackoverflow.com</a></div>
</td>
</tr>
</tbody>
</table>
<div id="gmail-m_4152221100209582908LPCloseButtonContainer284556" title="Remove link preview" role="button">
<i aria-hidden="true" id="gmail-m_4152221100209582908LPCloseButton284556"></i></div>
</div>
</div>
</div>
<div>
<div id="gmail-m_4152221100209582908Signature">
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
<p style="margin:0cm;font-size:11pt;font-family:Calibri,sans-serif;background:white">
<span lang="FR" style="margin:0px;padding:0cm;border:1pt none windowtext;font-size:10pt;font-family:Arial,sans-serif;color:rgb(118,113,113)"></span></p>
</div>
</div>
</div>
</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><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature">Andrew Bell<br><a href="mailto:andrew.bell.ia@gmail.com" target="_blank">andrew.bell.ia@gmail.com</a></div>