[pdal] Using PDAL for the first time
José Antonio Carmena
jcurru at yahoo.es
Sat Feb 26 10:34:58 PST 2022
Using no pipeline return no PointView at all in views:
pdal::Options opts; opts.add("filename", src);
pdal::StageFactory pdalFactory; pdal::Stage *reader = pdalFactory.createStage(driver); reader->setOptions(opts);
pdal::PointTable table; reader->prepare(table); reader->execute(table);
// partirlo en trozos pdal::ChipperFilter chipper; // default: 5000 puntos chipper.prepare(table); pdal::PointViewSet views = chipper.execute(table);
José Antonio Carmena Flores
En sábado, 26 de febrero de 2022 14:09:48 CET, José Antonio Carmena <jcurru at yahoo.es> escribió:
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/8bcda96f/attachment.html>
More information about the pdal
mailing list