[Liblas-devel] Reading N points
Howard Butler
hobu.inc at gmail.com
Mon Jan 17 12:20:21 EST 2011
On Jan 17, 2011, at 11:05 AM, Andrew Bell wrote:
>> * 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?
None. Just a preference. It doesn't necessarily get us out of a large allocation either, as the naive implementation is going to try to pull all of the bytes out of the file for the requested run of points.
In light of that, a vector of liblas::Point is fine with me.
Howard
More information about the Liblas-devel
mailing list