<div style="font-family: 'verdana'; font-size: 12px; color: #000;">Thanks Howard for clarifying this.</div>
<div style="font-family: 'verdana'; font-size: 12px; color: #000;">The reason why I am trying to use filters.crop is the following:</div>
<div style="font-family: 'verdana'; font-size: 12px; color: #000;">I am trying to find the max(z) in each of a number of polygons.</div>
<div style="font-family: 'verdana'; font-size: 12px; color: #000;">I found</div>
<div style="font-family: 'verdana'; font-size: 12px; color: #000;"><a href="https://stackoverflow.com/questions/75907829/can-pdal-be-used-to-find-the-max-point-in-each-of-a-set-of-polygons" target="_blank" rel="noopener noreferrer">https://stackoverflow.com/questions/75907829/can-pdal-be-used-to-find-the-max-point-in-each-of-a-set-of-polygons</a></div>
<div style="font-family: 'verdana'; font-size: 12px; color: #000;">that exactly describes what I want to do, but I do not have the WKT geometries.</div>
<div style="font-family: 'verdana'; font-size: 12px; color: #000;"> </div>
<div style="font-family: 'verdana'; font-size: 12px; color: #000;">When I use the filters.assign and filters.expression workflow, I get only one single point, not one per polygon.</div>
<div style="font-family: 'verdana'; font-size: 12px; color: #000;"> </div>
<div style="font-family: 'verdana'; font-size: 12px; color: #000;">Is there a difference how filters.crop works compared to filters.assign/filters.expression that effects the outcome of filters.locate?</div>
<div style="font-family: 'verdana'; font-size: 12px; color: #000;"> </div>
<div style="font-family: 'verdana'; font-size: 12px; color: #000;">Regards,</div>
<div style="font-family: 'verdana'; font-size: 12px; color: #000;">Roland</div>
<div style="font-family: 'verdana'; font-size: 12px; color: #000;"><span style="background-color: rgb(255, 255, 255);"> </span></div>
<div id="sub-body-container" style="margin: 10px 5px 5px 10px; padding: 10px 0px 10px 10px; border-left: 2px solid rgb(195, 217, 229);">
<div style="margin: 0px 0px 10px;">
<div><strong>Gesendet: </strong>Montag, 31. März 2025 um 15:43</div>
<div><strong>Von: </strong>"Howard Butler" <howard@hobu.co></div>
<div><strong>An: </strong>"Roland Spielhofer" <rspiel@gmx.net></div>
<div><strong>CC: </strong>pdal@lists.osgeo.org</div>
<div><strong>Betreff: </strong>Re: [pdal] filter.crop option "ogr"</div>
</div>
Roland,
<div> </div>
<div>This feature is a 2.9.0+ thing, which has not been released yet.</div>
<div> </div>
<div><a href="https://pdal.io/en/2.8.4/stages/filters.crop.html" target="_blank" rel="noopener noreferrer">https://pdal.io/en/2.8.4/stages/filters.crop.html</a> 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 <a href="https://pdal.io/en/2.8.4/workshop/manipulation/clipping/clipping.html#workshop-clipping" target="_blank" rel="noopener noreferrer">https://pdal.io/en/2.8.4/workshop/manipulation/clipping/clipping.html#workshop-clipping</a></div>
<div> </div>
<div>Howard<br id="lineBreakAtBeginningOfMessage">
<div><br>
<blockquote>
<div>On Mar 31, 2025, at 8:40 AM, Roland Spielhofer via pdal <pdal@lists.osgeo.org> wrote:</div>
<br class="Apple-interchange-newline">
<div>
<div style="font-family: verdana; font-size: 12.0px;"><span style="background-color: rgb(255,255,255);">Hi,</span></div>
<div style="font-family: verdana; font-size: 12.0px;"><span style="background-color: rgb(255,255,255);">I am trying to use the option "ogr" in filters.crop.</span></div>
<div style="font-family: verdana; font-size: 12.0px;"><span style="background-color: rgb(255,255,255);"> </span></div>
<div style="font-family: verdana; font-size: 12.0px;"><span style="background-color: rgb(255,255,255);">...</span></div>
<div style="font-family: verdana; font-size: 12.0px;"><span style="background-color: rgb(255,255,255);">{<br>        "type":"filters.crop",<br>        "ogr":{<br>            "type":"ogr",<br>            "datasource": ["Buffers.shp"],<br>            "drivers":"ESRI Shapefile"<br>        }<br>     },</span></div>
<div style="font-family: verdana; font-size: 12.0px;"><span style="background-color: rgb(255,255,255);">...</span></div>
<div style="font-family: verdana; font-size: 12.0px;"><span style="background-color: rgb(255,255,255);"> </span></div>
<div style="font-family: verdana; font-size: 12.0px;"><span style="background-color: rgb(255,255,255);">When doing so, I get</span></div>
<div style="font-family: verdana; font-size: 12.0px;"><span style="background-color: rgb(255,255,255);">"PDAL: filters.crop: Unexpected argument 'ogr'."</span></div>
<div style="font-family: verdana; font-size: 12.0px;"><span style="background-color: rgb(255,255,255);"> </span></div>
<div style="font-family: verdana; font-size: 12.0px;"><span style="background-color: rgb(255,255,255);">My version:</span></div>
<div style="font-family: verdana; font-size: 12.0px;"><span style="background-color: rgb(255,255,255);">(lidar) Q:\.....\PDAL>pdal --version<br>--------------------------------------------------------------------------------<br>pdal 2.8.4 (git-version: Release)<br>--------------------</span><span style="background-color: rgb(255,255,255);">------------------------------------------------------------</span></div>
<div style="font-family: verdana; font-size: 12.0px;"><span style="background-color: rgb(255,255,255);">on Windows/Conda</span></div>
<div style="font-family: verdana; font-size: 12.0px;"><span style="background-color: rgb(255,255,255);"> </span></div>
<div style="font-family: verdana; font-size: 12.0px;"><span style="background-color: rgb(255,255,255);">Is "ogr" already included in v2.8.4?</span></div>
<div style="font-family: verdana; font-size: 12.0px;"><span style="background-color: rgb(255,255,255);"> </span></div>
<div style="font-family: verdana; font-size: 12.0px;"><span style="background-color: rgb(255,255,255);">Thanks!</span></div>
<div style="font-family: verdana; font-size: 12.0px;"><span style="background-color: rgb(255,255,255);">Roland</span></div>
_______________________________________________<br>pdal mailing list<br>pdal@lists.osgeo.org<br><a href="https://lists.osgeo.org/mailman/listinfo/pdal" target="_blank" rel="noopener noreferrer">https://lists.osgeo.org/mailman/listinfo/pdal</a></div>
</blockquote>
</div>
</div>
</div>