[Liblas-devel] Overriding a Reader's header
Mateusz Loskot
mateusz at loskot.net
Tue Oct 6 15:13:54 EDT 2009
Howard Butler wrote:
> I propose that we provide a
>
> LASReader(std::istream& ifs, LASHeader& header)
>
> constructor, and if this constructor is used, this header is used to
> describe the data except for the following condition... we respect the
> dataoffset as it exists in the file (why it isn't const). This will
> allow a user to override things like the coordinate system, scales,
> dates, etc but still allow the file to be read.
>
> Make sense?
Hobu,
Sure, it looks perfectly OK to me, except I would pass header by const:
LASReader(std::istream& ifs, LASHeader const& header)
as long as I understand it correctly that it's input-only parameter,
should be anyway.
Best regards,
--
Mateusz Loskot, http://mateusz.loskot.net
Charter Member of OSGeo, http://osgeo.org
More information about the Liblas-devel
mailing list