[pdal] Filters.Crop "where" parameter issue
    Robert Plant 
    iamriskyrob at gmail.com
       
    Fri Nov 20 07:26:47 PST 2020
    
    
  
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"
    }
  ]
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/pdal/attachments/20201120/fd541e8c/attachment.html>
    
    
More information about the pdal
mailing list