[pdal] filter.crop option "ogr"

Howard Butler howard at hobu.co
Mon Mar 31 06:43:34 PDT 2025


Roland,

This feature is a 2.9.0+ thing, which has not been released yet.

https://pdal.io/en/2.8.4/stages/filters.crop.html doesn't show any 'ogr' option. You can achieve a similar outcome by using filters.assign to label points and filters.expression to cull them https://pdal.io/en/2.8.4/workshop/manipulation/clipping/clipping.html#workshop-clipping

Howard

> On Mar 31, 2025, at 8:40 AM, Roland Spielhofer via pdal <pdal at lists.osgeo.org> wrote:
> 
> Hi,
> I am trying to use the option "ogr" in filters.crop.
>  
> ...
> {
>         "type":"filters.crop",
>         "ogr":{
>             "type":"ogr",
>             "datasource": ["Buffers.shp"],
>             "drivers":"ESRI Shapefile"
>         }
>      },
> ...
>  
> When doing so, I get
> "PDAL: filters.crop: Unexpected argument 'ogr'."
>  
> My version:
> (lidar) Q:\.....\PDAL>pdal --version
> --------------------------------------------------------------------------------
> pdal 2.8.4 (git-version: Release)
> --------------------------------------------------------------------------------
> on Windows/Conda
>  
> Is "ogr" already included in v2.8.4?
>  
> Thanks!
> Roland
> _______________________________________________
> 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/20250331/2fd93544/attachment.htm>


More information about the pdal mailing list