[pdal] Filters.Crop "where" parameter issue

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[pdal] Filters.Crop "where" parameter issue

Robert Plant
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
[hidden email]
https://lists.osgeo.org/mailman/listinfo/pdal
Reply | Threaded
Open this post in threaded view
|

Re: [pdal] Filters.Crop "where" parameter issue

Bradley Chambers
Where was introduced in v2.2. 

On Fri, Nov 20, 2020 at 09:27 Robert Plant <[hidden email]> 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
[hidden email]
https://lists.osgeo.org/mailman/listinfo/pdal

_______________________________________________
pdal mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/pdal