[Liblas-devel] Reading N points

Andrew Bell andrew.bell.ia at gmail.com
Mon Jan 17 12:05:57 EST 2011


On Mon, Jan 17, 2011 at 10:28 AM, Michael P. Gerlek <mpg at flaxen.com> wrote:
> Fellow liblas-devels:
>
> It would be Good Thing to have a ReadPoints function, which would have the
> ability to return N points at once.  For some workflows, this would be
> arguably more efficient and cleaner than calling ReadPoint N times manually.
>
> Hobu suggests this should be called ReadPointsAt(), which first does a seek
> for you to wherever you want to go today.  That makes sense.
>
> A deeper question, though, is this: what does the function return?
>
>  * Hobu suggests returning a const_iterator, to allow you to walk all the
> points yourself without having to allocate a huge amount of memory.

What advantage does having an iterator have over the current
interface?  Does it address your original desire to retrieve N points
at once?

-- 
Andrew Bell
andrew.bell.ia at gmail.com


More information about the Liblas-devel mailing list