<div dir="ltr">Rose,<br><br>I think the where clause you'd need if your data is 1.4 is:<br><br>where : "ClassFlags != 4 || Classification != 1"</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Aug 4, 2021 at 10:14 AM Andrew Bell <<a href="mailto:andrew.bell.ia@gmail.com">andrew.bell.ia@gmail.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">"where" is supported for writers as of version 2.3</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Aug 4, 2021 at 10:13 AM Bradley Chambers <<a href="mailto:brad.chambers@gmail.com" target="_blank">brad.chambers@gmail.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">Rose,<div><br></div><div>As Andrew suggested, the withheld bit is actually stored in ClassFlags for your data. In this case, withheld returns are marked as "4" (see the LAS spec for more on the flags).<div><br></div><div>$ pdal info CL2_BR20_2020_1000_4134.laz --filters.stats.count "Classification,ClassFlags" --filters.stats.dimensions "Classification,ClassFlags"<br>{<br>  "file_size": 8728570,<br>  "filename": "CL2_BR20_2020_1000_4134.laz",<br>  "now": "2021-08-04T08:51:53-0500",<br>  "pdal_version": "2.2.0 (git-version: 3dd320)",<br>  "reader": "readers.las",<br>  "stats":<br>  {<br>    "statistic":<br>    [<br>      {<br>        "average": 2.3644045,<br>        "count": 2524409,<br>        "counts":<br>        [<br>          "1.000000/759595",<br>          "2.000000/1154344",<br>          "3.000000/160785",<br>          "4.000000/135106",<br>          "5.000000/9930",<br>          "6.000000/304542",<br>          "7.000000/106",<br>          "18.000000/1"<br>        ],<br>        "maximum": 18,<br>        "minimum": 1,<br>        "name": "Classification",<br>        "position": 0,<br>        "stddev": 1.55327344,<br>        "variance": 2.412658379<br>      },<br>      {<br>        "average": 1.159550612,<br>        "count": 2524409,<br>        "counts":<br>        [<br>          "0.000000/1792614",<br>          "4.000000/731795"<br>        ],<br>        "maximum": 4,<br>        "minimum": 0,<br>        "name": "ClassFlags",<br>        "position": 1,<br>        "stddev": 1.814840525,<br>        "variance": 3.29364613<br>      }<br>    ]<br>  }<br>}<br></div><div><br></div><div>Also, the where option is not supported on reader/writer stages, so you actually should've seen an error if you executed the pipeline that you shared. If you simply want a pipeline to extract non-withheld points, you can use the range filter. If you want to skip withheld points, but not discard them, you could use where with the other filters in your pipeline.</div><div><br></div><div>Brad</div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Aug 4, 2021 at 8:12 AM Rose Phillips <<a href="mailto:RPhillips@linz.govt.nz" target="_blank">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>
<p class="MsoNormal"><span>LAZ files with 129 bits are downloadable for free here :-<br>
<br>
aws s3 cp s3://pc-bulk/NZ20_Westport/ . --recursive --endpoint-url <a href="https://opentopography.s3.sdsc.edu" target="_blank">
https://opentopography.s3.sdsc.edu</a> --no-sign-request<u></u><u></u></span></p>
<p class="MsoNormal"><span><u></u> <u></u></span></p>
<p class="MsoNormal"><span>Using the same pipeline as below I was having the same issue with example file from the above bucket CL2_BR20_2020_1000_4134.laz – output file still contained the 129 bit when explicitly filtered
 out by writers.las.where statement. <u></u><u></u></span></p>
<p class="MsoNormal"><span><u></u> <u></u></span></p>
<div style="border-right:none;border-bottom:none;border-left:none;border-top:1pt solid rgb(225,225,225);padding:3pt 0cm 0cm">
<p class="MsoNormal"><b><span lang="EN-US">From:</span></b><span lang="EN-US"> Andrew Bell <<a href="mailto:andrew.bell.ia@gmail.com" target="_blank">andrew.bell.ia@gmail.com</a>>
<br>
<b>Sent:</b> Wednesday, 4 August 2021 11:57 a.m.<br>
<b>To:</b> Rose Phillips <<a href="mailto:RPhillips@linz.govt.nz" target="_blank">RPhillips@linz.govt.nz</a>><br>
<b>Cc:</b> <a href="mailto:pdal@lists.osgeo.org" target="_blank">pdal@lists.osgeo.org</a><br>
<b>Subject:</b> Re: [pdal] Attempting to filter out (1) Unclassified points flagged as Withheld<u></u><u></u></span></p>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<p class="MsoNormal">The pipeline doesn't seem to match the output you show, so it's hard to know what's going on. If you want to share a file I can see what's up.<u></u><u></u></p>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<div>
<p class="MsoNormal">On Tue, Aug 3, 2021 at 5:22 PM Rose Phillips <<a href="mailto:RPhillips@linz.govt.nz" target="_blank">RPhillips@linz.govt.nz</a>> wrote:<u></u><u></u></p>
</div>
<blockquote style="border-top:none;border-right:none;border-bottom:none;border-left:1pt solid rgb(204,204,204);padding:0cm 0cm 0cm 6pt;margin:5pt 0cm 5pt 4.8pt">
<div>
<div>
<p class="MsoNormal">Hi Andrew,<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">Thank you for the heads up, I tried the following pipeline;<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal" style="line-height:14.25pt;background:rgb(30,30,30)">
<span style="font-size:10.5pt;font-family:Consolas;color:rgb(212,212,212)">{</span><u></u><u></u></p>
<p class="MsoNormal" style="line-height:14.25pt;background:rgb(30,30,30)">
<span style="font-size:10.5pt;font-family:Consolas;color:rgb(212,212,212)">    </span><span style="font-size:10.5pt;font-family:Consolas;color:rgb(156,220,254)">"pipeline"</span><span style="font-size:10.5pt;font-family:Consolas;color:rgb(212,212,212)"> : [</span><u></u><u></u></p>
<p class="MsoNormal" style="line-height:14.25pt;background:rgb(30,30,30)">
<span style="font-size:10.5pt;font-family:Consolas;color:rgb(212,212,212)">    {</span><u></u><u></u></p>
<p class="MsoNormal" style="line-height:14.25pt;background:rgb(30,30,30)">
<span style="font-size:10.5pt;font-family:Consolas;color:rgb(212,212,212)">        </span><span style="font-size:10.5pt;font-family:Consolas;color:rgb(156,220,254)">"type"</span><span style="font-size:10.5pt;font-family:Consolas;color:rgb(212,212,212)"> : </span><span style="font-size:10.5pt;font-family:Consolas;color:rgb(206,145,120)">"readers.las"</span><span style="font-size:10.5pt;font-family:Consolas;color:rgb(212,212,212)">,</span><u></u><u></u></p>
<p class="MsoNormal" style="line-height:14.25pt;background:rgb(30,30,30)">
<span style="font-size:10.5pt;font-family:Consolas;color:rgb(212,212,212)">        </span><span style="font-size:10.5pt;font-family:Consolas;color:rgb(156,220,254)">"filename"</span><span style="font-size:10.5pt;font-family:Consolas;color:rgb(212,212,212)"> : </span><span style="font-size:10.5pt;font-family:Consolas;color:rgb(206,145,120)">"input.las"</span><u></u><u></u></p>
<p class="MsoNormal" style="line-height:14.25pt;background:rgb(30,30,30)">
<span style="font-size:10.5pt;font-family:Consolas;color:rgb(212,212,212)">    },  </span><u></u><u></u></p>
<p class="MsoNormal" style="line-height:14.25pt;background:rgb(30,30,30)">
<span style="font-size:10.5pt;font-family:Consolas;color:rgb(212,212,212)">    {</span><u></u><u></u></p>
<p class="MsoNormal" style="line-height:14.25pt;background:rgb(30,30,30)">
<span style="font-size:10.5pt;font-family:Consolas;color:rgb(212,212,212)">        </span><span style="font-size:10.5pt;font-family:Consolas;color:rgb(156,220,254)">"type"</span><span style="font-size:10.5pt;font-family:Consolas;color:rgb(212,212,212)"> : </span><span style="font-size:10.5pt;font-family:Consolas;color:rgb(206,145,120)">"writers.las"</span><span style="font-size:10.5pt;font-family:Consolas;color:rgb(212,212,212)">,</span><u></u><u></u></p>
<p class="MsoNormal" style="line-height:14.25pt;background:rgb(30,30,30)">
<span style="font-size:10.5pt;font-family:Consolas;color:rgb(212,212,212)">        </span><span style="font-size:10.5pt;font-family:Consolas;color:rgb(156,220,254)">"a_srs"</span><span style="font-size:10.5pt;font-family:Consolas;color:rgb(212,212,212)"> : </span><span style="font-size:10.5pt;font-family:Consolas;color:rgb(206,145,120)">"EPSG:2193+7839"</span><span style="font-size:10.5pt;font-family:Consolas;color:rgb(212,212,212)">,</span><u></u><u></u></p>
<p class="MsoNormal" style="line-height:14.25pt;background:rgb(30,30,30)">
<span style="font-size:10.5pt;font-family:Consolas;color:rgb(212,212,212)">        </span><span style="font-size:10.5pt;font-family:Consolas;color:rgb(156,220,254)">"filesource_id"</span><span style="font-size:10.5pt;font-family:Consolas;color:rgb(212,212,212)"> : </span><span style="font-size:10.5pt;font-family:Consolas;color:rgb(206,145,120)">"0"</span><span style="font-size:10.5pt;font-family:Consolas;color:rgb(212,212,212)">,</span><u></u><u></u></p>
<p class="MsoNormal" style="line-height:14.25pt;background:rgb(30,30,30)">
<span style="font-size:10.5pt;font-family:Consolas;color:rgb(212,212,212)">        </span><span style="font-size:10.5pt;font-family:Consolas;color:rgb(156,220,254)">"filename"</span><span style="font-size:10.5pt;font-family:Consolas;color:rgb(212,212,212)"> : </span><span style="font-size:10.5pt;font-family:Consolas;color:rgb(206,145,120)">"output.las"</span><span style="font-size:10.5pt;font-family:Consolas;color:rgb(212,212,212)">,</span><u></u><u></u></p>
<p class="MsoNormal" style="line-height:14.25pt;background:rgb(30,30,30)">
<span style="font-size:10.5pt;font-family:Consolas;color:rgb(212,212,212)">        </span><span style="font-size:10.5pt;font-family:Consolas;color:rgb(156,220,254)">"where"</span><span style="font-size:10.5pt;font-family:Consolas;color:rgb(212,212,212)">: </span><span style="font-size:10.5pt;font-family:Consolas;color:rgb(206,145,120)">"ClassFlags!=129"</span><u></u><u></u></p>
<p class="MsoNormal" style="line-height:14.25pt;background:rgb(30,30,30)">
<span style="font-size:10.5pt;font-family:Consolas;color:rgb(212,212,212)">    }</span><u></u><u></u></p>
<p class="MsoNormal" style="line-height:14.25pt;background:rgb(30,30,30)">
<span style="font-size:10.5pt;font-family:Consolas;color:rgb(212,212,212)">    ]</span><u></u><u></u></p>
<p class="MsoNormal" style="line-height:14.25pt;background:rgb(30,30,30)">
<span style="font-size:10.5pt;font-family:Consolas;color:rgb(212,212,212)">}</span><u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">However my output LAZ file still had these bits intact;<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<div style="border-right:none;border-bottom:none;border-left:none;border-top:1pt solid rgb(225,225,225);padding:3pt 0cm 0cm">
<p class="MsoNormal" style="line-height:14.25pt;background:rgb(30,30,30)">
<span style="font-size:10.5pt;font-family:Consolas;color:rgb(212,212,212)">{</span><u></u><u></u></p>
<p class="MsoNormal" style="line-height:14.25pt;background:rgb(30,30,30)">
<span style="font-size:10.5pt;font-family:Consolas;color:rgb(212,212,212)">  </span><span style="font-size:10.5pt;font-family:Consolas;color:rgb(156,220,254)">"file_size"</span><span style="font-size:10.5pt;font-family:Consolas;color:rgb(212,212,212)">: </span><span style="font-size:10.5pt;font-family:Consolas;color:rgb(181,206,168)">3007189</span><span style="font-size:10.5pt;font-family:Consolas;color:rgb(212,212,212)">,</span><u></u><u></u></p>
<p class="MsoNormal" style="line-height:14.25pt;background:rgb(30,30,30)">
<span style="font-size:10.5pt;font-family:Consolas;color:rgb(212,212,212)">  </span><span style="font-size:10.5pt;font-family:Consolas;color:rgb(156,220,254)">"filename"</span><span style="font-size:10.5pt;font-family:Consolas;color:rgb(212,212,212)">: </span><span style="font-size:10.5pt;font-family:Consolas;color:rgb(206,145,120)">"C:</span><span style="font-size:10.5pt;font-family:Consolas;color:rgb(215,186,125)">\\</span><span style="font-size:10.5pt;font-family:Consolas;color:rgb(206,145,120)">Temp</span><span style="font-size:10.5pt;font-family:Consolas;color:rgb(215,186,125)">\\</span><span style="font-size:10.5pt;font-family:Consolas;color:rgb(206,145,120)">scan_angle</span><span style="font-size:10.5pt;font-family:Consolas;color:rgb(215,186,125)">\\</span><span style="font-size:10.5pt;font-family:Consolas;color:rgb(206,145,120)">test_file</span><span style="font-size:10.5pt;font-family:Consolas;color:rgb(215,186,125)">\\</span><span style="font-size:10.5pt;font-family:Consolas;color:rgb(206,145,120)">processed</span><span style="font-size:10.5pt;font-family:Consolas;color:rgb(215,186,125)">\\</span><span style="font-size:10.5pt;font-family:Consolas;color:rgb(206,145,120)">CL2_BW24_2020_1000_4526.laz"</span><span style="font-size:10.5pt;font-family:Consolas;color:rgb(212,212,212)">,</span><u></u><u></u></p>
<p class="MsoNormal" style="line-height:14.25pt;background:rgb(30,30,30)">
<span style="font-size:10.5pt;font-family:Consolas;color:rgb(212,212,212)">  </span><span style="font-size:10.5pt;font-family:Consolas;color:rgb(156,220,254)">"now"</span><span style="font-size:10.5pt;font-family:Consolas;color:rgb(212,212,212)">: </span><span style="font-size:10.5pt;font-family:Consolas;color:rgb(206,145,120)">"2021-08-04T09:20:17+1200"</span><span style="font-size:10.5pt;font-family:Consolas;color:rgb(212,212,212)">,</span><u></u><u></u></p>
<p class="MsoNormal" style="line-height:14.25pt;background:rgb(30,30,30)">
<span style="font-size:10.5pt;font-family:Consolas;color:rgb(212,212,212)">  </span><span style="font-size:10.5pt;font-family:Consolas;color:rgb(156,220,254)">"pdal_version"</span><span style="font-size:10.5pt;font-family:Consolas;color:rgb(212,212,212)">: </span><span style="font-size:10.5pt;font-family:Consolas;color:rgb(206,145,120)">"2.3.0 (git-version: Release)"</span><span style="font-size:10.5pt;font-family:Consolas;color:rgb(212,212,212)">,</span><u></u><u></u></p>
<p class="MsoNormal" style="line-height:14.25pt;background:rgb(30,30,30)">
<span style="font-size:10.5pt;font-family:Consolas;color:rgb(212,212,212)">  </span><span style="font-size:10.5pt;font-family:Consolas;color:rgb(156,220,254)">"reader"</span><span style="font-size:10.5pt;font-family:Consolas;color:rgb(212,212,212)">: </span><span style="font-size:10.5pt;font-family:Consolas;color:rgb(206,145,120)">"readers.las"</span><span style="font-size:10.5pt;font-family:Consolas;color:rgb(212,212,212)">,</span><u></u><u></u></p>
<p class="MsoNormal" style="line-height:14.25pt;background:rgb(30,30,30)">
<span style="font-size:10.5pt;font-family:Consolas;color:rgb(212,212,212)">  </span><span style="font-size:10.5pt;font-family:Consolas;color:rgb(156,220,254)">"stats"</span><span style="font-size:10.5pt;font-family:Consolas;color:rgb(212,212,212)">:</span><u></u><u></u></p>
<p class="MsoNormal" style="line-height:14.25pt;background:rgb(30,30,30)">
<span style="font-size:10.5pt;font-family:Consolas;color:rgb(212,212,212)">  {</span><u></u><u></u></p>
<p class="MsoNormal" style="line-height:14.25pt;background:rgb(30,30,30)">
<span style="font-size:10.5pt;font-family:Consolas;color:rgb(212,212,212)">    </span><span style="font-size:10.5pt;font-family:Consolas;color:rgb(156,220,254)">"statistic"</span><span style="font-size:10.5pt;font-family:Consolas;color:rgb(212,212,212)">:</span><u></u><u></u></p>
<p class="MsoNormal" style="line-height:14.25pt;background:rgb(30,30,30)">
<span style="font-size:10.5pt;font-family:Consolas;color:rgb(212,212,212)">    [</span><u></u><u></u></p>
<p class="MsoNormal" style="line-height:14.25pt;background:rgb(30,30,30)">
<span style="font-size:10.5pt;font-family:Consolas;color:rgb(212,212,212)">      {</span><u></u><u></u></p>
<p class="MsoNormal" style="line-height:14.25pt;background:rgb(30,30,30)">
<span style="font-size:10.5pt;font-family:Consolas;color:rgb(212,212,212)">        </span><span style="font-size:10.5pt;font-family:Consolas;color:rgb(156,220,254)">"average"</span><span style="font-size:10.5pt;font-family:Consolas;color:rgb(212,212,212)">: </span><span style="font-size:10.5pt;font-family:Consolas;color:rgb(181,206,168)">6.704382019</span><span style="font-size:10.5pt;font-family:Consolas;color:rgb(212,212,212)">,</span><u></u><u></u></p>
<p class="MsoNormal" style="line-height:14.25pt;background:rgb(30,30,30)">
<span style="font-size:10.5pt;font-family:Consolas;color:rgb(212,212,212)">        </span><span style="font-size:10.5pt;font-family:Consolas;color:rgb(156,220,254)">"count"</span><span style="font-size:10.5pt;font-family:Consolas;color:rgb(212,212,212)">: </span><span style="font-size:10.5pt;font-family:Consolas;color:rgb(181,206,168)">1307434</span><span style="font-size:10.5pt;font-family:Consolas;color:rgb(212,212,212)">,</span><u></u><u></u></p>
<p class="MsoNormal" style="line-height:14.25pt;background:rgb(30,30,30)">
<span style="font-size:10.5pt;font-family:Consolas;color:rgb(212,212,212)">        </span><span style="font-size:10.5pt;font-family:Consolas;color:rgb(156,220,254)">"maximum"</span><span style="font-size:10.5pt;font-family:Consolas;color:rgb(212,212,212)">: </span><span style="font-size:10.5pt;font-family:Consolas;color:rgb(181,206,168)">129</span><span style="font-size:10.5pt;font-family:Consolas;color:rgb(212,212,212)">,</span><u></u><u></u></p>
<p class="MsoNormal" style="line-height:14.25pt;background:rgb(30,30,30)">
<span style="font-size:10.5pt;font-family:Consolas;color:rgb(212,212,212)">        </span><span style="font-size:10.5pt;font-family:Consolas;color:rgb(156,220,254)">"minimum"</span><span style="font-size:10.5pt;font-family:Consolas;color:rgb(212,212,212)">: </span><span style="font-size:10.5pt;font-family:Consolas;color:rgb(181,206,168)">2</span><span style="font-size:10.5pt;font-family:Consolas;color:rgb(212,212,212)">,</span><u></u><u></u></p>
<p class="MsoNormal" style="line-height:14.25pt;background:rgb(30,30,30)">
<span style="font-size:10.5pt;font-family:Consolas;color:rgb(212,212,212)">        </span><span style="font-size:10.5pt;font-family:Consolas;color:rgb(156,220,254)">"name"</span><span style="font-size:10.5pt;font-family:Consolas;color:rgb(212,212,212)">: </span><span style="font-size:10.5pt;font-family:Consolas;color:rgb(206,145,120)">"Classification"</span><span style="font-size:10.5pt;font-family:Consolas;color:rgb(212,212,212)">,</span><u></u><u></u></p>
<p class="MsoNormal" style="line-height:14.25pt;background:rgb(30,30,30)">
<span style="font-size:10.5pt;font-family:Consolas;color:rgb(212,212,212)">        </span><span style="font-size:10.5pt;font-family:Consolas;color:rgb(156,220,254)">"position"</span><span style="font-size:10.5pt;font-family:Consolas;color:rgb(212,212,212)">: </span><span style="font-size:10.5pt;font-family:Consolas;color:rgb(181,206,168)">0</span><span style="font-size:10.5pt;font-family:Consolas;color:rgb(212,212,212)">,</span><u></u><u></u></p>
<p class="MsoNormal" style="line-height:14.25pt;background:rgb(30,30,30)">
<span style="font-size:10.5pt;font-family:Consolas;color:rgb(212,212,212)">        </span><span style="font-size:10.5pt;font-family:Consolas;color:rgb(156,220,254)">"stddev"</span><span style="font-size:10.5pt;font-family:Consolas;color:rgb(212,212,212)">: </span><span style="font-size:10.5pt;font-family:Consolas;color:rgb(181,206,168)">21.69585237</span><span style="font-size:10.5pt;font-family:Consolas;color:rgb(212,212,212)">,</span><u></u><u></u></p>
<p class="MsoNormal" style="line-height:14.25pt;background:rgb(30,30,30)">
<span style="font-size:10.5pt;font-family:Consolas;color:rgb(212,212,212)">        </span><span style="font-size:10.5pt;font-family:Consolas;color:rgb(156,220,254)">"values"</span><span style="font-size:10.5pt;font-family:Consolas;color:rgb(212,212,212)">:</span><u></u><u></u></p>
<p class="MsoNormal" style="line-height:14.25pt;background:rgb(30,30,30)">
<span style="font-size:10.5pt;font-family:Consolas;color:rgb(212,212,212)">        [</span><u></u><u></u></p>
<p class="MsoNormal" style="line-height:14.25pt;background:rgb(30,30,30)">
<span style="font-size:10.5pt;font-family:Consolas;color:rgb(212,212,212)">          </span><span style="font-size:10.5pt;font-family:Consolas;color:rgb(181,206,168)">2</span><span style="font-size:10.5pt;font-family:Consolas;color:rgb(212,212,212)">,</span><u></u><u></u></p>
<p class="MsoNormal" style="line-height:14.25pt;background:rgb(30,30,30)">
<span style="font-size:10.5pt;font-family:Consolas;color:rgb(212,212,212)">          </span><span style="font-size:10.5pt;font-family:Consolas;color:rgb(181,206,168)">3</span><span style="font-size:10.5pt;font-family:Consolas;color:rgb(212,212,212)">,</span><u></u><u></u></p>
<p class="MsoNormal" style="line-height:14.25pt;background:rgb(30,30,30)">
<span style="font-size:10.5pt;font-family:Consolas;color:rgb(212,212,212)">          </span><span style="font-size:10.5pt;font-family:Consolas;color:rgb(181,206,168)">4</span><span style="font-size:10.5pt;font-family:Consolas;color:rgb(212,212,212)">,</span><u></u><u></u></p>
<p class="MsoNormal" style="line-height:14.25pt;background:rgb(30,30,30)">
<span style="font-size:10.5pt;font-family:Consolas;color:rgb(212,212,212)">          </span><span style="font-size:10.5pt;font-family:Consolas;color:rgb(181,206,168)">5</span><span style="font-size:10.5pt;font-family:Consolas;color:rgb(212,212,212)">,</span><u></u><u></u></p>
<p class="MsoNormal" style="line-height:14.25pt;background:rgb(30,30,30)">
<span style="font-size:10.5pt;font-family:Consolas;color:rgb(212,212,212)">          </span><span style="font-size:10.5pt;font-family:Consolas;color:rgb(181,206,168)">7</span><span style="font-size:10.5pt;font-family:Consolas;color:rgb(212,212,212)">,</span><u></u><u></u></p>
<p class="MsoNormal" style="line-height:14.25pt;background:rgb(30,30,30)">
<span style="font-size:10.5pt;font-family:Consolas;color:rgb(212,212,212)">          </span><span style="font-size:10.5pt;font-family:Consolas;color:rgb(181,206,168)">9</span><span style="font-size:10.5pt;font-family:Consolas;color:rgb(212,212,212)">,</span><u></u><u></u></p>
<p class="MsoNormal" style="line-height:14.25pt;background:rgb(30,30,30)">
<span style="font-size:10.5pt;font-family:Consolas;color:rgb(212,212,212)">          </span><span style="font-size:10.5pt;font-family:Consolas;color:rgb(181,206,168)">18</span><span style="font-size:10.5pt;font-family:Consolas;color:rgb(212,212,212)">,</span><u></u><u></u></p>
<p class="MsoNormal" style="line-height:14.25pt;background:rgb(30,30,30)">
<span style="font-size:10.5pt;font-family:Consolas;color:rgb(212,212,212)">          </span><span style="font-size:10.5pt;font-family:Consolas;color:rgb(181,206,168)">129</span><u></u><u></u></p>
<p class="MsoNormal" style="line-height:14.25pt;background:rgb(30,30,30)">
<span style="font-size:10.5pt;font-family:Consolas;color:rgb(212,212,212)">        ],</span><u></u><u></u></p>
<p class="MsoNormal" style="line-height:14.25pt;background:rgb(30,30,30)">
<span style="font-size:10.5pt;font-family:Consolas;color:rgb(212,212,212)">        </span><span style="font-size:10.5pt;font-family:Consolas;color:rgb(156,220,254)">"variance"</span><span style="font-size:10.5pt;font-family:Consolas;color:rgb(212,212,212)">: </span><span style="font-size:10.5pt;font-family:Consolas;color:rgb(181,206,168)">470.7100099</span><u></u><u></u></p>
<p class="MsoNormal" style="line-height:14.25pt;background:rgb(30,30,30)">
<span style="font-size:10.5pt;font-family:Consolas;color:rgb(212,212,212)">      }</span><u></u><u></u></p>
<p class="MsoNormal" style="line-height:14.25pt;background:rgb(30,30,30)">
<span style="font-size:10.5pt;font-family:Consolas;color:rgb(212,212,212)">    ]</span><u></u><u></u></p>
<p class="MsoNormal" style="line-height:14.25pt;background:rgb(30,30,30)">
<span style="font-size:10.5pt;font-family:Consolas;color:rgb(212,212,212)">  }</span><u></u><u></u></p>
<p class="MsoNormal" style="line-height:14.25pt;background:rgb(30,30,30)">
<span style="font-size:10.5pt;font-family:Consolas;color:rgb(212,212,212)">}</span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-US"> </span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-US">Kindest regards Rose
</span><u></u><u></u></p>
<p class="MsoNormal"><b><span lang="EN-US">______________________________________________________________________________________________________________________________________________________________</span></b><u></u><u></u></p>
<p class="MsoNormal"><b><span lang="EN-US">From:</span></b><span lang="EN-US"> Andrew Bell <<a href="mailto:andrew.bell.ia@gmail.com" target="_blank">andrew.bell.ia@gmail.com</a>>
<br>
<b>Sent:</b> Tuesday, 3 August 2021 11:00 p.m.<br>
<b>To:</b> Rose Phillips <<a href="mailto:RPhillips@linz.govt.nz" target="_blank">RPhillips@linz.govt.nz</a>><br>
<b>Cc:</b> <a href="mailto:pdal@lists.osgeo.org" target="_blank">pdal@lists.osgeo.org</a><br>
<b>Subject:</b> Re: [pdal] Attempting to filter out (1) Unclassified points flagged as Withheld</span><u></u><u></u></p>
</div>
<p class="MsoNormal"> <u></u><u></u></p>
<div>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
<p class="MsoNormal"> <u></u><u></u></p>
<div>
<div>
<p class="MsoNormal">On Mon, Aug 2, 2021 at 5:39 PM Rose Phillips <<a href="mailto:RPhillips@linz.govt.nz" target="_blank">RPhillips@linz.govt.nz</a>> wrote:<u></u><u></u></p>
</div>
<blockquote style="border-top:none;border-right:none;border-bottom:none;border-left:1pt solid rgb(204,204,204);padding:0cm 0cm 0cm 6pt;margin:5pt 0cm 5pt 4.8pt">
<div>
<div>
<p class="MsoNormal">Hi pdal’ers
<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">These are my attempts to filter out (1) Unclassified Points flagged as withheld in LAS filers for further analyses.<u></u><u></u></p>
<p class="MsoNormal">Any chance you guys can point to where I have gone wrong?<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">pipelines I have tried using pdal 2.3.0: to filter out (1) unclassified points flagged as withheld;<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">1.<u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:"Segoe UI",sans-serif;color:rgb(201,209,217)"> </span><u></u><u></u></p>
<p class="MsoNormal">{<u></u><u></u></p>
<p class="MsoNormal">    "pipeline" : [<u></u><u></u></p>
<p class="MsoNormal">    {<u></u><u></u></p>
<p class="MsoNormal">        "type" : "readers.las",<u></u><u></u></p>
<p class="MsoNormal">        "filename" : "input.las"<u></u><u></u></p>
<p class="MsoNormal">    },<u></u><u></u></p>
<p class="MsoNormal">                {<u></u><u></u></p>
<p class="MsoNormal">                                "type":"filters.range",<u></u><u></u></p>
<p class="MsoNormal">                                "limits":"Classification![129:129]"<u></u><u></u></p>
<p class="MsoNormal">                },            
<u></u><u></u></p>
<p class="MsoNormal">    {<u></u><u></u></p>
<p class="MsoNormal">        "type" : "writers.las",<u></u><u></u></p>
<p class="MsoNormal">        "a_srs" : "EPSG:2193+7839",<u></u><u></u></p>
<p class="MsoNormal">        "filesource_id" : "0",<u></u><u></u></p>
<p class="MsoNormal">        "filename" : "output.las"<u></u><u></u></p>
<p class="MsoNormal">    }<u></u><u></u></p>
<p class="MsoNormal">    ]<u></u><u></u></p>
<p class="MsoNormal">  }<u></u><u></u></p>
</div>
</div>
</blockquote>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">I think that this should filter out unclassified withheld points with LAS 1.2 and 1.3. With LAS 1.4, the withheld attribute is stored in the "ClassFlags" dimension, so you'll need
 to use boolean logic with that dimension and the "Classification" dimension to do what you want. You might also use pdal info --enumerate to make sure that your data has the values you think it does.<u></u><u></u></p>
</div>
</div>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
<p class="MsoNormal">--
<u></u><u></u></p>
<div>
<p class="MsoNormal">Andrew Bell<br>
<a href="mailto:andrew.bell.ia@gmail.com" target="_blank">andrew.bell.ia@gmail.com</a><u></u><u></u></p>
</div>
</div>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
<div class="MsoNormal" align="center" style="text-align:center">
<hr size="2" width="100%" align="center">
</div>
<p class="MsoNormal"><span style="font-size:10pt;font-family:Verdana,sans-serif;color:black"><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.</span><u></u><u></u></p>
</div>
</blockquote>
</div>
<p class="MsoNormal"><br clear="all">
<u></u><u></u></p>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<p class="MsoNormal">-- <u></u><u></u></p>
<div>
<p class="MsoNormal">Andrew Bell<br>
<a href="mailto:andrew.bell.ia@gmail.com" target="_blank">andrew.bell.ia@gmail.com</a><u></u><u></u></p>
</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>
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">Andrew Bell<br><a href="mailto:andrew.bell.ia@gmail.com" target="_blank">andrew.bell.ia@gmail.com</a></div>
</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>