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_______________________________________________
Liblas-devel mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/liblas-devel

Reply via email to