<p dir="ltr">I'd recommend taking a look at the range filter for more generic dimensional filtering. PCL, and the PCLBlock filter in particular, lock us into predefined point types, where height isn't accounted for. I can send a more concrete example later this afternoon.</p>
<p dir="ltr">Brad</p>
<br><div class="gmail_quote"><div dir="ltr">On Tue, Feb 2, 2016, 11:02 Stephen Mather <<a href="mailto:stephen@smathermather.com">stephen@smathermather.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>I am wondering if PCL filters in PDAL can be used on alternate dimensions? In my case, Height (above ground) as calculated with the height filter is the dimension in question.<br><br></div>This is my passthrough JSON:<br><div><div><div><div><br>```<br>{<br> "pipeline":<br> {<br> "name": "PassThroughExample",<br> "filters":<br> [<br> {<br> "name": "PassThrough",<br> "setFilterFieldName": "Height",<br> "setFilterLimits":<br> {<br> "min": 0.5,<br> "max": 5<br> }<br> }<br> ]<br> }<br>}<br>```<br><br></div><div>And I am running in docker. Here's my crude and confused BASH wrapper script to which I pass all files matching a find:<br><br>```<br></div><div>#!/bin/bash<br></div><div>pathname="${1%/*}"<br>name=`basename $1 .bpf`<br><br>docker run -v $pathname:/data pdal/master pdal pcl -i //data/"$name".bpf -p //data/5.0.filter.json -o //data/"$name"_5.0.bpf;<br>```<br></div><div>This will work of course if my setFilterFieldName is Z, but not Height (no matter the capitalization.<br><br></div><div>Thanks in advance,<br></div><div>Best,<br></div><div>Steve<br></div></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="http://lists.osgeo.org/mailman/listinfo/pdal" rel="noreferrer" target="_blank">http://lists.osgeo.org/mailman/listinfo/pdal</a></blockquote></div>