[Liblas-devel] How to use a cached reader (c++)

Howard Butler howard at hobu.co
Tue Mar 15 07:57:20 PDT 2016


> On Mar 15, 2016, at 5:34 AM, Helimap Postmaster <postmaster at helimap.ch> wrote:
> 
> Getting to pdal, there isn't much documentation on the pdal c++ API, is there? (e.g. http://www.pdal.io/api/cpp/reader.html ) What methods does the reader class provide? Are they thread-safe? You state pdal is not parallelized, but can I use the reader in parallel? Does it buffer, and can I have access to the buffer?

Yes, the docs are a bit thin. Your best resource for documentation is actually the test suite in ./test/unit and of course the headers themselves.

I was not sure what you wanted. By default PDAL will *read everything* for a file and then go on and process it. It sounds like you actually want this. Access to the raw buffer itself is guarded, but you can implement your own PointTable class that implements the buffer however you want.

> I see you use std::set as a container, which makes perfect sense on the kind of data. Unfortunatelly std::set doesn't play well with openmp. Did I miss another stl container pdal can use?

I'm not quite sure what you mean here. You're going to have to provide more detail.

Let's please take this discussion to the PDAL list http://www.pdal.io/community.html


More information about the Liblas-devel mailing list