[pdal] Using PDAL for the first time

José Antonio Carmena jcurru at yahoo.es
Sat Feb 26 05:10:30 PST 2022


Hello.
I don't know if this is the right place to ask this query. The thing is that I am using PDAL for the first time in the context of an application written in C++. I am trying to create a pipeline with two stages: a reader that reads a LAS and a Chipper filter that splits it into chunks. The code (summarized) is as follows:
        pdal::PipelineManager pipeline.
        pipeline.makeReader(
            src, // const std::string& inputFile,            std::string());
        pipeline->makeFilter("filters.chipper");
        pipeline->execute();

As I understand it, after execute() pipeline-views() should return a set of PointViews, each of which should have about 5000 points. Unfortunately, pipeline-views().size() returns one, a single PointView with about 400,000 points. What am I doing wrong?

Thanks in advance!
José Antonio Carmena Flores

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/pdal/attachments/20220226/7d5a684b/attachment.html>


More information about the pdal mailing list