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

Helimap Postmaster postmaster at helimap.ch
Tue Mar 15 01:24:49 PDT 2016


Good morning Howard,

This is precious information. I was unaware on liblas being under revision,
I'm glad you told me. I'll follow up the pointers you gave, they look
promising.

Thank you again,

Pol

On Mon, Mar 14, 2016 at 8:29 PM, Howard Butler <howard at hobu.co> wrote:

>
> > On Mar 14, 2016, at 9:54 AM, Helimap Postmaster <postmaster at helimap.ch>
> wrote:
> >
> > Hello!
> >
> > I am currently developing an application which would benefit from using
> a buffer when reading a las file.
> >
> > The C++ API has a CreateCached method in the ReaderFactory, but I can't
> seem to discover which is the intended way to use it, there's no reference
> anywhere on the documentation, and actually no other method calls it.
> >
> > Is it as simple as
> >
> > liblas::ReaderFactory readerFactory;
> > boost::uint32_t cache_size = 1000;
> > liblas::Reader reader(lasFStream, cache_size);
>
> Pol,
>
> I would suggest if you are starting fresh with including LAS reading into
> your software that you start with either PDAL http://pdal.io or LASlib
> https://github.com/LAStools/LAStools/tree/master/LASlib
>
> For LAS files, PDAL is going to allow you to read in a one-at-a-time
> streamed fashion or as a giant single buffer. It of course also supports
> LASzip and many other point cloud format types.
>
> Thanks,
>
> Howard
>
> PS libLAS is now in "maintenance mode" and should only be used by projects
> that have historically used it in the past. If you are doing new things,
> you should use PDAL or look to other things like LASlib
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/liblas-devel/attachments/20160315/d8b44a88/attachment.html>


More information about the Liblas-devel mailing list