[pdal] Filters.Crop "where" parameter issue

Bradley Chambers brad.chambers at gmail.com
Fri Nov 20 07:52:40 PST 2020


Where was introduced in v2.2.

On Fri, Nov 20, 2020 at 09:27 Robert Plant <iamriskyrob at gmail.com> wrote:

> Hi Guys,
>
> I wasn't sure if this was a bug or me just using the where parameter in
> Filters.Crop incorrectly so I thought this might be the best place to post
> my problem.
>
> I am using PDAL version 2.1.0 taken from Conda
>
> I'm trying to use Filters.Crop to crop an extruded polygon in 3D space, I
> thought I could use the polygon parameter to define a 2D polygon in XY
> space and use the where parameter to ignore points that are outside my
> defined Z values.
>
> My problem is that I get this error message: PDAL: filters.crop:
> Unexpected argument 'where'.
>
> I am using a pipeline which I'll paste below, any thoughts on what is
> going wrong?
>
> Kind Regards,
> Rob
>
> {
>   "pipeline": [
>     {
>       "filename": "C:/Users/robert.plant/Documents/Testing/Scan5.csv",
>       "header": "X,Y,Z",
>       "type": "readers.text"
>     },
>     {
>       "polygon": "POLYGON((-19.7748222351074
> 15.8164501190186,48.7325973510742 15.8164501190186,48.7325973510742
> 54.9158058166504,-19.7748222351074 54.9158058166504,-19.7748222351074
> 15.8164501190186))",
>       "outside": false,
>       "type": "filters.crop",
>  "where": "(Z > -33 || Z < -60)"
>     },
>     {
>       "type": "writers.las",
>       "filename":
> "C:\\Users\\robert.plant\\Documents\\Testing\\CroppedScan5.las",
>       "compression": "none"
>     }
>   ]
> }
>
> _______________________________________________
> pdal mailing list
> pdal at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/pdal
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/pdal/attachments/20201120/bea0c362/attachment.html>


More information about the pdal mailing list