[pdal] PCL filters in PDAL

Bradley Chambers brad.chambers at gmail.com
Tue Feb 2 11:06:26 PST 2016


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.

Brad

On Tue, Feb 2, 2016, 11:02 Stephen Mather <stephen at smathermather.com> wrote:

> 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.
>
> This is my passthrough JSON:
>
> ```
> {
>     "pipeline":
>     {
>         "name": "PassThroughExample",
>         "filters":
>         [
>             {
>                 "name": "PassThrough",
>                 "setFilterFieldName": "Height",
>                 "setFilterLimits":
>                 {
>                     "min": 0.5,
>                     "max": 5
>                 }
>             }
>         ]
>     }
> }
> ```
>
> And I am running in docker. Here's my crude and confused BASH wrapper
> script to which I pass all files matching a find:
>
> ```
> #!/bin/bash
> pathname="${1%/*}"
> name=`basename $1 .bpf`
>
> 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;
> ```
> This will work of course if my setFilterFieldName is Z, but not Height (no
> matter the capitalization.
>
> Thanks in advance,
> Best,
> Steve
> _______________________________________________
> pdal mailing list
> pdal at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/pdal
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/pdal/attachments/20160202/c308db71/attachment.html>


More information about the pdal mailing list