[pdal] crop inside and outside

Oscar Martinez Rubi o.rubi at esciencecenter.nl
Wed May 6 03:05:02 PDT 2015


Thanks for the suggestion!

I looked at the splitter filter and it is not exactly what I want but I think it is easy to tweak it to do what I want to do so I will probably do it that way! I will share the tweak just in case somebody else want that...

As far as I understood from the code the Splitter filter make a grid of the input file so the cells coordinates depend on the extent of the file but in the grid that i want the extent of the cells depend on a global coordinates so I need to somehow pass the grid description to the splitter method. I think is easily doable, right?

Thanks again!

Regards,
O.
________________________________________
From: pdal-bounces at lists.osgeo.org <pdal-bounces at lists.osgeo.org> on behalf of Howard Butler <howard at hobu.co>
Sent: Tuesday, May 5, 2015 7:33 PM
To: pdal at lists.osgeo.org
Subject: Re: [pdal] crop inside and outside

> On May 5, 2015, at 11:10 AM, Oscar Martinez Rubi <o.rubi at esciencecenter.nl> wrote:
>
> Hi,
>
> I want to crop the points in a file that are inside a polygon (or bounding box) into a new file but also want to put the points outside in another file.
>
> I guess i can do this with two runs of pdal pipeline (one with inside=true and other with false) but this means all the points are processed twice Is there a way to do it in a single run in a way that the input file does not need to be processed twice?
>
> BTW, my end goal is to divide the file into parts according to a fixed grid so if someone knows a better way of achieving this let me know please.

The new split command should be exactly what you want.

http://www.pdal.io/apps.html#split-command

Howard
_______________________________________________
pdal mailing list
pdal at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/pdal


More information about the pdal mailing list