<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Consolas;
panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin-top:0cm;
margin-right:0cm;
margin-bottom:8.0pt;
margin-left:0cm;
line-height:106%;
font-size:11.0pt;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-NZ" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal">Hi guys,<o:p></o:p></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.<o:p></o:p></p>
<p class="MsoNormal">I used pdal pipeline to modify these headers and used the following json notation;<o:p></o:p></p>
<p class="MsoNormal" style="margin-bottom:0cm;margin-bottom:.0001pt;line-height:14.25pt;background:#272822">
<span style="font-size:10.5pt;font-family:Consolas;color:#F8F8F2;mso-fareast-language:EN-NZ">{<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:0cm;margin-bottom:.0001pt;line-height:14.25pt;background:#272822">
<span style="font-size:10.5pt;font-family:Consolas;color:#F8F8F2;mso-fareast-language:EN-NZ"> </span><i><span style="font-size:10.5pt;font-family:Consolas;color:#66D9EF;mso-fareast-language:EN-NZ">"pipeline"</span></i><span style="font-size:10.5pt;font-family:Consolas;color:#F8F8F2;mso-fareast-language:EN-NZ"> : [<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:0cm;margin-bottom:.0001pt;line-height:14.25pt;background:#272822">
<span style="font-size:10.5pt;font-family:Consolas;color:#F8F8F2;mso-fareast-language:EN-NZ"> {<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:0cm;margin-bottom:.0001pt;line-height:14.25pt;background:#272822">
<span style="font-size:10.5pt;font-family:Consolas;color:#F8F8F2;mso-fareast-language:EN-NZ"> </span><i><span style="font-size:10.5pt;font-family:Consolas;color:#66D9EF;mso-fareast-language:EN-NZ">"type"</span></i><span style="font-size:10.5pt;font-family:Consolas;color:#F8F8F2;mso-fareast-language:EN-NZ"> : </span><span style="font-size:10.5pt;font-family:Consolas;color:#CFCFC2;mso-fareast-language:EN-NZ">"readers.las"</span><span style="font-size:10.5pt;font-family:Consolas;color:#F8F8F2;mso-fareast-language:EN-NZ">,<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:0cm;margin-bottom:.0001pt;line-height:14.25pt;background:#272822">
<span style="font-size:10.5pt;font-family:Consolas;color:#F8F8F2;mso-fareast-language:EN-NZ"> </span><i><span style="font-size:10.5pt;font-family:Consolas;color:#66D9EF;mso-fareast-language:EN-NZ">"filename"</span></i><span style="font-size:10.5pt;font-family:Consolas;color:#F8F8F2;mso-fareast-language:EN-NZ"> : </span><span style="font-size:10.5pt;font-family:Consolas;color:#CFCFC2;mso-fareast-language:EN-NZ">"input.laz"</span><span style="font-size:10.5pt;font-family:Consolas;color:#F8F8F2;mso-fareast-language:EN-NZ"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:0cm;margin-bottom:.0001pt;line-height:14.25pt;background:#272822">
<span style="font-size:10.5pt;font-family:Consolas;color:#F8F8F2;mso-fareast-language:EN-NZ"> },<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:0cm;margin-bottom:.0001pt;line-height:14.25pt;background:#272822">
<span style="font-size:10.5pt;font-family:Consolas;color:#F8F8F2;mso-fareast-language:EN-NZ"><o:p> </o:p></span></p>
<p class="MsoNormal" style="margin-bottom:0cm;margin-bottom:.0001pt;line-height:14.25pt;background:#272822">
<span style="font-size:10.5pt;font-family:Consolas;color:#F8F8F2;mso-fareast-language:EN-NZ"> {<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:0cm;margin-bottom:.0001pt;line-height:14.25pt;background:#272822">
<span style="font-size:10.5pt;font-family:Consolas;color:#F8F8F2;mso-fareast-language:EN-NZ"> </span><i><span style="font-size:10.5pt;font-family:Consolas;color:#66D9EF;mso-fareast-language:EN-NZ">"type"</span></i><span style="font-size:10.5pt;font-family:Consolas;color:#F8F8F2;mso-fareast-language:EN-NZ"> : </span><span style="font-size:10.5pt;font-family:Consolas;color:#CFCFC2;mso-fareast-language:EN-NZ">"writers.las"</span><span style="font-size:10.5pt;font-family:Consolas;color:#F8F8F2;mso-fareast-language:EN-NZ">,<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:0cm;margin-bottom:.0001pt;line-height:14.25pt;background:#272822">
<span style="font-size:10.5pt;font-family:Consolas;color:#F8F8F2;mso-fareast-language:EN-NZ"> </span><i><span style="font-size:10.5pt;font-family:Consolas;color:#66D9EF;mso-fareast-language:EN-NZ">"minor_version"</span></i><span style="font-size:10.5pt;font-family:Consolas;color:#F8F8F2;mso-fareast-language:EN-NZ"> : </span><span style="font-size:10.5pt;font-family:Consolas;color:#AE81FF;mso-fareast-language:EN-NZ">3</span><span style="font-size:10.5pt;font-family:Consolas;color:#F8F8F2;mso-fareast-language:EN-NZ">,<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:0cm;margin-bottom:.0001pt;line-height:14.25pt;background:#272822">
<span style="font-size:10.5pt;font-family:Consolas;color:#F8F8F2;mso-fareast-language:EN-NZ"> </span><i><span style="font-size:10.5pt;font-family:Consolas;color:#66D9EF;mso-fareast-language:EN-NZ">"filesource_id"</span></i><span style="font-size:10.5pt;font-family:Consolas;color:#F8F8F2;mso-fareast-language:EN-NZ"> : </span><span style="font-size:10.5pt;font-family:Consolas;color:#AE81FF;mso-fareast-language:EN-NZ">0</span><span style="font-size:10.5pt;font-family:Consolas;color:#F8F8F2;mso-fareast-language:EN-NZ">,<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:0cm;margin-bottom:.0001pt;line-height:14.25pt;background:#272822">
<span style="font-size:10.5pt;font-family:Consolas;color:#F8F8F2;mso-fareast-language:EN-NZ"> </span><i><span style="font-size:10.5pt;font-family:Consolas;color:#66D9EF;mso-fareast-language:EN-NZ">"a_srs"</span></i><span style="font-size:10.5pt;font-family:Consolas;color:#F8F8F2;mso-fareast-language:EN-NZ"> : </span><span style="font-size:10.5pt;font-family:Consolas;color:#CFCFC2;mso-fareast-language:EN-NZ">"EPSG:2193+7839"</span><span style="font-size:10.5pt;font-family:Consolas;color:#F8F8F2;mso-fareast-language:EN-NZ">,<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:0cm;margin-bottom:.0001pt;line-height:14.25pt;background:#272822">
<span style="font-size:10.5pt;font-family:Consolas;color:#F8F8F2;mso-fareast-language:EN-NZ"> </span><i><span style="font-size:10.5pt;font-family:Consolas;color:#66D9EF;mso-fareast-language:EN-NZ">"forward"</span></i><span style="font-size:10.5pt;font-family:Consolas;color:#F8F8F2;mso-fareast-language:EN-NZ">: </span><span style="font-size:10.5pt;font-family:Consolas;color:#CFCFC2;mso-fareast-language:EN-NZ">"all"</span><span style="font-size:10.5pt;font-family:Consolas;color:#F8F8F2;mso-fareast-language:EN-NZ">,<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:0cm;margin-bottom:.0001pt;line-height:14.25pt;background:#272822">
<span style="font-size:10.5pt;font-family:Consolas;color:#F8F8F2;mso-fareast-language:EN-NZ"> </span><i><span style="font-size:10.5pt;font-family:Consolas;color:#66D9EF;mso-fareast-language:EN-NZ">"filename"</span></i><span style="font-size:10.5pt;font-family:Consolas;color:#F8F8F2;mso-fareast-language:EN-NZ"> : </span><span style="font-size:10.5pt;font-family:Consolas;color:#CFCFC2;mso-fareast-language:EN-NZ">"output.laz"</span><span style="font-size:10.5pt;font-family:Consolas;color:#F8F8F2;mso-fareast-language:EN-NZ"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:0cm;margin-bottom:.0001pt;line-height:14.25pt;background:#272822">
<span style="font-size:10.5pt;font-family:Consolas;color:#F8F8F2;mso-fareast-language:EN-NZ"> }<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:0cm;margin-bottom:.0001pt;line-height:14.25pt;background:#272822">
<span style="font-size:10.5pt;font-family:Consolas;color:#F8F8F2;mso-fareast-language:EN-NZ"> ]<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:0cm;margin-bottom:.0001pt;line-height:14.25pt;background:#272822">
<span style="font-size:10.5pt;font-family:Consolas;color:#F8F8F2;mso-fareast-language:EN-NZ">}<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></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.<o:p></o:p></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?
<o:p></o:p></p>
<p class="MsoNormal">I’m wondering am I missing something or is this a bug?<o:p></o:p></p>
<p class="MsoNormal">I tried the following methology and got the same error -: PDAL: writers.las: Unexpected argument 'filesource_id'<o:p></o:p></p>
<p class="MsoNormal" style="margin-bottom:0cm;margin-bottom:.0001pt;line-height:14.25pt;background:#272822">
<span style="font-size:10.5pt;font-family:Consolas;color:#F8F8F2;mso-fareast-language:EN-NZ">{<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:0cm;margin-bottom:.0001pt;line-height:14.25pt;background:#272822">
<span style="font-size:10.5pt;font-family:Consolas;color:#F8F8F2;mso-fareast-language:EN-NZ"> </span><i><span style="font-size:10.5pt;font-family:Consolas;color:#66D9EF;mso-fareast-language:EN-NZ">"pipeline"</span></i><span style="font-size:10.5pt;font-family:Consolas;color:#F8F8F2;mso-fareast-language:EN-NZ"> : [<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:0cm;margin-bottom:.0001pt;line-height:14.25pt;background:#272822">
<span style="font-size:10.5pt;font-family:Consolas;color:#F8F8F2;mso-fareast-language:EN-NZ"> {<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:0cm;margin-bottom:.0001pt;line-height:14.25pt;background:#272822">
<span style="font-size:10.5pt;font-family:Consolas;color:#F8F8F2;mso-fareast-language:EN-NZ"> </span><i><span style="font-size:10.5pt;font-family:Consolas;color:#66D9EF;mso-fareast-language:EN-NZ">"type"</span></i><span style="font-size:10.5pt;font-family:Consolas;color:#F8F8F2;mso-fareast-language:EN-NZ"> : </span><span style="font-size:10.5pt;font-family:Consolas;color:#CFCFC2;mso-fareast-language:EN-NZ">"readers.las"</span><span style="font-size:10.5pt;font-family:Consolas;color:#F8F8F2;mso-fareast-language:EN-NZ">,<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:0cm;margin-bottom:.0001pt;line-height:14.25pt;background:#272822">
<span style="font-size:10.5pt;font-family:Consolas;color:#F8F8F2;mso-fareast-language:EN-NZ"> </span><i><span style="font-size:10.5pt;font-family:Consolas;color:#66D9EF;mso-fareast-language:EN-NZ">"filename"</span></i><span style="font-size:10.5pt;font-family:Consolas;color:#F8F8F2;mso-fareast-language:EN-NZ"> : </span><span style="font-size:10.5pt;font-family:Consolas;color:#CFCFC2;mso-fareast-language:EN-NZ">"input.laz"</span><span style="font-size:10.5pt;font-family:Consolas;color:#F8F8F2;mso-fareast-language:EN-NZ"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:0cm;margin-bottom:.0001pt;line-height:14.25pt;background:#272822">
<span style="font-size:10.5pt;font-family:Consolas;color:#F8F8F2;mso-fareast-language:EN-NZ"> },<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:0cm;margin-bottom:.0001pt;line-height:14.25pt;background:#272822">
<span style="font-size:10.5pt;font-family:Consolas;color:#F8F8F2;mso-fareast-language:EN-NZ"><o:p> </o:p></span></p>
<p class="MsoNormal" style="margin-bottom:0cm;margin-bottom:.0001pt;line-height:14.25pt;background:#272822">
<span style="font-size:10.5pt;font-family:Consolas;color:#F8F8F2;mso-fareast-language:EN-NZ"> {<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:0cm;margin-bottom:.0001pt;line-height:14.25pt;background:#272822">
<span style="font-size:10.5pt;font-family:Consolas;color:#F8F8F2;mso-fareast-language:EN-NZ"> </span><i><span style="font-size:10.5pt;font-family:Consolas;color:#66D9EF;mso-fareast-language:EN-NZ">"type"</span></i><span style="font-size:10.5pt;font-family:Consolas;color:#F8F8F2;mso-fareast-language:EN-NZ"> : </span><span style="font-size:10.5pt;font-family:Consolas;color:#CFCFC2;mso-fareast-language:EN-NZ">"writers.las"</span><span style="font-size:10.5pt;font-family:Consolas;color:#F8F8F2;mso-fareast-language:EN-NZ">,<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:0cm;margin-bottom:.0001pt;line-height:14.25pt;background:#272822">
<span style="font-size:10.5pt;font-family:Consolas;color:#F8F8F2;mso-fareast-language:EN-NZ"> </span><i><span style="font-size:10.5pt;font-family:Consolas;color:#66D9EF;mso-fareast-language:EN-NZ">"minor_version"</span></i><span style="font-size:10.5pt;font-family:Consolas;color:#F8F8F2;mso-fareast-language:EN-NZ"> : </span><span style="font-size:10.5pt;font-family:Consolas;color:#AE81FF;mso-fareast-language:EN-NZ">3</span><span style="font-size:10.5pt;font-family:Consolas;color:#F8F8F2;mso-fareast-language:EN-NZ">,<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:0cm;margin-bottom:.0001pt;line-height:14.25pt;background:#272822">
<span style="font-size:10.5pt;font-family:Consolas;color:#F8F8F2;mso-fareast-language:EN-NZ"> </span><i><span style="font-size:10.5pt;font-family:Consolas;color:#66D9EF;mso-fareast-language:EN-NZ">"filesource_id"</span></i><span style="font-size:10.5pt;font-family:Consolas;color:#F8F8F2;mso-fareast-language:EN-NZ"> : </span><span style="font-size:10.5pt;font-family:Consolas;color:#AE81FF;mso-fareast-language:EN-NZ">0</span><span style="font-size:10.5pt;font-family:Consolas;color:#F8F8F2;mso-fareast-language:EN-NZ">,<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:0cm;margin-bottom:.0001pt;line-height:14.25pt;background:#272822">
<span style="font-size:10.5pt;font-family:Consolas;color:#F8F8F2;mso-fareast-language:EN-NZ"> </span><i><span style="font-size:10.5pt;font-family:Consolas;color:#66D9EF;mso-fareast-language:EN-NZ">"a_srs"</span></i><span style="font-size:10.5pt;font-family:Consolas;color:#F8F8F2;mso-fareast-language:EN-NZ"> : </span><span style="font-size:10.5pt;font-family:Consolas;color:#CFCFC2;mso-fareast-language:EN-NZ">"EPSG:2193+7839"</span><span style="font-size:10.5pt;font-family:Consolas;color:#F8F8F2;mso-fareast-language:EN-NZ">,<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:0cm;margin-bottom:.0001pt;line-height:14.25pt;background:#272822">
<span style="font-size:10.5pt;font-family:Consolas;color:#F8F8F2;mso-fareast-language:EN-NZ"> </span><i><span style="font-size:10.5pt;font-family:Consolas;color:#66D9EF;mso-fareast-language:EN-NZ">"forward"</span></i><span style="font-size:10.5pt;font-family:Consolas;color:#F8F8F2;mso-fareast-language:EN-NZ">: </span><span style="font-size:10.5pt;font-family:Consolas;color:#CFCFC2;mso-fareast-language:EN-NZ">"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:#F8F8F2;mso-fareast-language:EN-NZ">,<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:0cm;margin-bottom:.0001pt;line-height:14.25pt;background:#272822">
<span style="font-size:10.5pt;font-family:Consolas;color:#F8F8F2;mso-fareast-language:EN-NZ"> </span><i><span style="font-size:10.5pt;font-family:Consolas;color:#66D9EF;mso-fareast-language:EN-NZ">"filename"</span></i><span style="font-size:10.5pt;font-family:Consolas;color:#F8F8F2;mso-fareast-language:EN-NZ"> : </span><span style="font-size:10.5pt;font-family:Consolas;color:#CFCFC2;mso-fareast-language:EN-NZ">"output.laz"</span><span style="font-size:10.5pt;font-family:Consolas;color:#F8F8F2;mso-fareast-language:EN-NZ"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:0cm;margin-bottom:.0001pt;line-height:14.25pt;background:#272822">
<span style="font-size:10.5pt;font-family:Consolas;color:#F8F8F2;mso-fareast-language:EN-NZ"> }<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:0cm;margin-bottom:.0001pt;line-height:14.25pt;background:#272822">
<span style="font-size:10.5pt;font-family:Consolas;color:#F8F8F2;mso-fareast-language:EN-NZ"> ]<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:0cm;margin-bottom:.0001pt;line-height:14.25pt;background:#272822">
<span style="font-size:10.5pt;font-family:Consolas;color:#F8F8F2;mso-fareast-language:EN-NZ">}<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></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.
<o:p></o:p></p>
<p class="MsoNormal">Many thanks,<o:p></o:p></p>
<p class="MsoNormal">Rose Phillips <o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></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 info@linz.govt.nz) 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>
</body>
</html>