<div dir="ltr">I've opened an issue to address this problem: <a href="https://github.com/PDAL/PDAL/issues/2862">https://github.com/PDAL/PDAL/issues/2862</a></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Jan 5, 2020 at 6:16 PM Rose Phillips <<a href="mailto:RPhillips@linz.govt.nz">RPhillips@linz.govt.nz</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 lang="EN-NZ">
<div class="gmail-m_7851511236247284554WordSection1">
<p class="MsoNormal">Hi guys,<u></u><u></u></p>
<p class="MsoNormal">I have a collection of LAS files in a directory, from the same project with a mixture of filesource_ids and minor_version, which I want to clean up with one value for each header respectively.<u></u><u></u></p>
<p class="MsoNormal">I used pdal pipeline to modify these headers and used the following json notation;<u></u><u></u></p>
<p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:14.25pt;background:rgb(39,40,34)">
<span style="font-size:10.5pt;font-family:Consolas;color:rgb(248,248,242)">{<u></u><u></u></span></p>
<p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:14.25pt;background:rgb(39,40,34)">
<span style="font-size:10.5pt;font-family:Consolas;color:rgb(248,248,242)"> </span><i><span style="font-size:10.5pt;font-family:Consolas;color:rgb(102,217,239)">"pipeline"</span></i><span style="font-size:10.5pt;font-family:Consolas;color:rgb(248,248,242)"> : [<u></u><u></u></span></p>
<p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:14.25pt;background:rgb(39,40,34)">
<span style="font-size:10.5pt;font-family:Consolas;color:rgb(248,248,242)"> {<u></u><u></u></span></p>
<p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:14.25pt;background:rgb(39,40,34)">
<span style="font-size:10.5pt;font-family:Consolas;color:rgb(248,248,242)"> </span><i><span style="font-size:10.5pt;font-family:Consolas;color:rgb(102,217,239)">"type"</span></i><span style="font-size:10.5pt;font-family:Consolas;color:rgb(248,248,242)"> : </span><span style="font-size:10.5pt;font-family:Consolas;color:rgb(207,207,194)">"readers.las"</span><span style="font-size:10.5pt;font-family:Consolas;color:rgb(248,248,242)">,<u></u><u></u></span></p>
<p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:14.25pt;background:rgb(39,40,34)">
<span style="font-size:10.5pt;font-family:Consolas;color:rgb(248,248,242)"> </span><i><span style="font-size:10.5pt;font-family:Consolas;color:rgb(102,217,239)">"filename"</span></i><span style="font-size:10.5pt;font-family:Consolas;color:rgb(248,248,242)"> : </span><span style="font-size:10.5pt;font-family:Consolas;color:rgb(207,207,194)">"input.laz"</span><span style="font-size:10.5pt;font-family:Consolas;color:rgb(248,248,242)"><u></u><u></u></span></p>
<p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:14.25pt;background:rgb(39,40,34)">
<span style="font-size:10.5pt;font-family:Consolas;color:rgb(248,248,242)"> },<u></u><u></u></span></p>
<p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:14.25pt;background:rgb(39,40,34)">
<span style="font-size:10.5pt;font-family:Consolas;color:rgb(248,248,242)"><u></u> <u></u></span></p>
<p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:14.25pt;background:rgb(39,40,34)">
<span style="font-size:10.5pt;font-family:Consolas;color:rgb(248,248,242)"> {<u></u><u></u></span></p>
<p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:14.25pt;background:rgb(39,40,34)">
<span style="font-size:10.5pt;font-family:Consolas;color:rgb(248,248,242)"> </span><i><span style="font-size:10.5pt;font-family:Consolas;color:rgb(102,217,239)">"type"</span></i><span style="font-size:10.5pt;font-family:Consolas;color:rgb(248,248,242)"> : </span><span style="font-size:10.5pt;font-family:Consolas;color:rgb(207,207,194)">"writers.las"</span><span style="font-size:10.5pt;font-family:Consolas;color:rgb(248,248,242)">,<u></u><u></u></span></p>
<p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:14.25pt;background:rgb(39,40,34)">
<span style="font-size:10.5pt;font-family:Consolas;color:rgb(248,248,242)"> </span><i><span style="font-size:10.5pt;font-family:Consolas;color:rgb(102,217,239)">"minor_version"</span></i><span style="font-size:10.5pt;font-family:Consolas;color:rgb(248,248,242)"> : </span><span style="font-size:10.5pt;font-family:Consolas;color:rgb(174,129,255)">3</span><span style="font-size:10.5pt;font-family:Consolas;color:rgb(248,248,242)">,<u></u><u></u></span></p>
<p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:14.25pt;background:rgb(39,40,34)">
<span style="font-size:10.5pt;font-family:Consolas;color:rgb(248,248,242)"> </span><i><span style="font-size:10.5pt;font-family:Consolas;color:rgb(102,217,239)">"filesource_id"</span></i><span style="font-size:10.5pt;font-family:Consolas;color:rgb(248,248,242)"> : </span><span style="font-size:10.5pt;font-family:Consolas;color:rgb(174,129,255)">0</span><span style="font-size:10.5pt;font-family:Consolas;color:rgb(248,248,242)">,<u></u><u></u></span></p>
<p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:14.25pt;background:rgb(39,40,34)">
<span style="font-size:10.5pt;font-family:Consolas;color:rgb(248,248,242)"> </span><i><span style="font-size:10.5pt;font-family:Consolas;color:rgb(102,217,239)">"a_srs"</span></i><span style="font-size:10.5pt;font-family:Consolas;color:rgb(248,248,242)"> : </span><span style="font-size:10.5pt;font-family:Consolas;color:rgb(207,207,194)">"EPSG:2193+7839"</span><span style="font-size:10.5pt;font-family:Consolas;color:rgb(248,248,242)">,<u></u><u></u></span></p>
<p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:14.25pt;background:rgb(39,40,34)">
<span style="font-size:10.5pt;font-family:Consolas;color:rgb(248,248,242)"> </span><i><span style="font-size:10.5pt;font-family:Consolas;color:rgb(102,217,239)">"forward"</span></i><span style="font-size:10.5pt;font-family:Consolas;color:rgb(248,248,242)">: </span><span style="font-size:10.5pt;font-family:Consolas;color:rgb(207,207,194)">"all"</span><span style="font-size:10.5pt;font-family:Consolas;color:rgb(248,248,242)">,<u></u><u></u></span></p>
<p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:14.25pt;background:rgb(39,40,34)">
<span style="font-size:10.5pt;font-family:Consolas;color:rgb(248,248,242)"> </span><i><span style="font-size:10.5pt;font-family:Consolas;color:rgb(102,217,239)">"filename"</span></i><span style="font-size:10.5pt;font-family:Consolas;color:rgb(248,248,242)"> : </span><span style="font-size:10.5pt;font-family:Consolas;color:rgb(207,207,194)">"output.laz"</span><span style="font-size:10.5pt;font-family:Consolas;color:rgb(248,248,242)"><u></u><u></u></span></p>
<p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:14.25pt;background:rgb(39,40,34)">
<span style="font-size:10.5pt;font-family:Consolas;color:rgb(248,248,242)"> }<u></u><u></u></span></p>
<p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:14.25pt;background:rgb(39,40,34)">
<span style="font-size:10.5pt;font-family:Consolas;color:rgb(248,248,242)"> ]<u></u><u></u></span></p>
<p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:14.25pt;background:rgb(39,40,34)">
<span style="font-size:10.5pt;font-family:Consolas;color:rgb(248,248,242)">}<u></u><u></u></span></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">The following error was raised -: PDAL: writers.las: Unexpected argument 'filesource_id' . This was for a file which already had the default value (0) for that header.<u></u><u></u></p>
<p class="MsoNormal">I was able to solve this issue by removing the code <<“filesource_id”:0>> from json notation and was still able to change the “minor_version”, even though it is written the same way as the “filesource_id” header?
<u></u><u></u></p>
<p class="MsoNormal">I’m wondering am I missing something or is this a bug?<u></u><u></u></p>
<p class="MsoNormal">I tried the following methology and got the same error -: PDAL: writers.las: Unexpected argument 'filesource_id'<u></u><u></u></p>
<p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:14.25pt;background:rgb(39,40,34)">
<span style="font-size:10.5pt;font-family:Consolas;color:rgb(248,248,242)">{<u></u><u></u></span></p>
<p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:14.25pt;background:rgb(39,40,34)">
<span style="font-size:10.5pt;font-family:Consolas;color:rgb(248,248,242)"> </span><i><span style="font-size:10.5pt;font-family:Consolas;color:rgb(102,217,239)">"pipeline"</span></i><span style="font-size:10.5pt;font-family:Consolas;color:rgb(248,248,242)"> : [<u></u><u></u></span></p>
<p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:14.25pt;background:rgb(39,40,34)">
<span style="font-size:10.5pt;font-family:Consolas;color:rgb(248,248,242)"> {<u></u><u></u></span></p>
<p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:14.25pt;background:rgb(39,40,34)">
<span style="font-size:10.5pt;font-family:Consolas;color:rgb(248,248,242)"> </span><i><span style="font-size:10.5pt;font-family:Consolas;color:rgb(102,217,239)">"type"</span></i><span style="font-size:10.5pt;font-family:Consolas;color:rgb(248,248,242)"> : </span><span style="font-size:10.5pt;font-family:Consolas;color:rgb(207,207,194)">"readers.las"</span><span style="font-size:10.5pt;font-family:Consolas;color:rgb(248,248,242)">,<u></u><u></u></span></p>
<p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:14.25pt;background:rgb(39,40,34)">
<span style="font-size:10.5pt;font-family:Consolas;color:rgb(248,248,242)"> </span><i><span style="font-size:10.5pt;font-family:Consolas;color:rgb(102,217,239)">"filename"</span></i><span style="font-size:10.5pt;font-family:Consolas;color:rgb(248,248,242)"> : </span><span style="font-size:10.5pt;font-family:Consolas;color:rgb(207,207,194)">"input.laz"</span><span style="font-size:10.5pt;font-family:Consolas;color:rgb(248,248,242)"><u></u><u></u></span></p>
<p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:14.25pt;background:rgb(39,40,34)">
<span style="font-size:10.5pt;font-family:Consolas;color:rgb(248,248,242)"> },<u></u><u></u></span></p>
<p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:14.25pt;background:rgb(39,40,34)">
<span style="font-size:10.5pt;font-family:Consolas;color:rgb(248,248,242)"><u></u> <u></u></span></p>
<p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:14.25pt;background:rgb(39,40,34)">
<span style="font-size:10.5pt;font-family:Consolas;color:rgb(248,248,242)"> {<u></u><u></u></span></p>
<p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:14.25pt;background:rgb(39,40,34)">
<span style="font-size:10.5pt;font-family:Consolas;color:rgb(248,248,242)"> </span><i><span style="font-size:10.5pt;font-family:Consolas;color:rgb(102,217,239)">"type"</span></i><span style="font-size:10.5pt;font-family:Consolas;color:rgb(248,248,242)"> : </span><span style="font-size:10.5pt;font-family:Consolas;color:rgb(207,207,194)">"writers.las"</span><span style="font-size:10.5pt;font-family:Consolas;color:rgb(248,248,242)">,<u></u><u></u></span></p>
<p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:14.25pt;background:rgb(39,40,34)">
<span style="font-size:10.5pt;font-family:Consolas;color:rgb(248,248,242)"> </span><i><span style="font-size:10.5pt;font-family:Consolas;color:rgb(102,217,239)">"minor_version"</span></i><span style="font-size:10.5pt;font-family:Consolas;color:rgb(248,248,242)"> : </span><span style="font-size:10.5pt;font-family:Consolas;color:rgb(174,129,255)">3</span><span style="font-size:10.5pt;font-family:Consolas;color:rgb(248,248,242)">,<u></u><u></u></span></p>
<p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:14.25pt;background:rgb(39,40,34)">
<span style="font-size:10.5pt;font-family:Consolas;color:rgb(248,248,242)"> </span><i><span style="font-size:10.5pt;font-family:Consolas;color:rgb(102,217,239)">"filesource_id"</span></i><span style="font-size:10.5pt;font-family:Consolas;color:rgb(248,248,242)"> : </span><span style="font-size:10.5pt;font-family:Consolas;color:rgb(174,129,255)">0</span><span style="font-size:10.5pt;font-family:Consolas;color:rgb(248,248,242)">,<u></u><u></u></span></p>
<p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:14.25pt;background:rgb(39,40,34)">
<span style="font-size:10.5pt;font-family:Consolas;color:rgb(248,248,242)"> </span><i><span style="font-size:10.5pt;font-family:Consolas;color:rgb(102,217,239)">"a_srs"</span></i><span style="font-size:10.5pt;font-family:Consolas;color:rgb(248,248,242)"> : </span><span style="font-size:10.5pt;font-family:Consolas;color:rgb(207,207,194)">"EPSG:2193+7839"</span><span style="font-size:10.5pt;font-family:Consolas;color:rgb(248,248,242)">,<u></u><u></u></span></p>
<p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:14.25pt;background:rgb(39,40,34)">
<span style="font-size:10.5pt;font-family:Consolas;color:rgb(248,248,242)"> </span><i><span style="font-size:10.5pt;font-family:Consolas;color:rgb(102,217,239)">"forward"</span></i><span style="font-size:10.5pt;font-family:Consolas;color:rgb(248,248,242)">: </span><span style="font-size:10.5pt;font-family:Consolas;color:rgb(207,207,194)">"major_version, global_encoding, project_id, system_id, software_id, creation_doy, creation_year, scale, offset"</span><span style="font-size:10.5pt;font-family:Consolas;color:rgb(248,248,242)">,<u></u><u></u></span></p>
<p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:14.25pt;background:rgb(39,40,34)">
<span style="font-size:10.5pt;font-family:Consolas;color:rgb(248,248,242)"> </span><i><span style="font-size:10.5pt;font-family:Consolas;color:rgb(102,217,239)">"filename"</span></i><span style="font-size:10.5pt;font-family:Consolas;color:rgb(248,248,242)"> : </span><span style="font-size:10.5pt;font-family:Consolas;color:rgb(207,207,194)">"output.laz"</span><span style="font-size:10.5pt;font-family:Consolas;color:rgb(248,248,242)"><u></u><u></u></span></p>
<p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:14.25pt;background:rgb(39,40,34)">
<span style="font-size:10.5pt;font-family:Consolas;color:rgb(248,248,242)"> }<u></u><u></u></span></p>
<p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:14.25pt;background:rgb(39,40,34)">
<span style="font-size:10.5pt;font-family:Consolas;color:rgb(248,248,242)"> ]<u></u><u></u></span></p>
<p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:14.25pt;background:rgb(39,40,34)">
<span style="font-size:10.5pt;font-family:Consolas;color:rgb(248,248,242)">}<u></u><u></u></span></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">I understand that I could fix this issue by sorting my point cloud files by these headers then processing them in these ‘batches’ but I’m trying to avoid that extra step as I’m planning to process hundreds of thousands of files.
<u></u><u></u></p>
<p class="MsoNormal">Many thanks,<u></u><u></u></p>
<p class="MsoNormal">Rose Phillips <u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<br>
<hr>
<font face="Verdana" color="Black" size="2"><br>
This message contains information, which may be in confidence and may be subject to legal privilege. If you are not the intended recipient, you must not peruse, use, disseminate, distribute or copy this message. If you have received this message in error, please
notify us immediately (Phone 0800 665 463 or <a href="mailto:info@linz.govt.nz" target="_blank">info@linz.govt.nz</a>) and destroy the original message. LINZ accepts no responsibility for changes to this email, or for any attachments, after its transmission from LINZ. Thank You.<br>
</font>
</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></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>