[Liblas-devel] Overriding a Reader's header
Howard Butler
hobu.inc at gmail.com
Tue Oct 6 15:30:46 EDT 2009
On Oct 6, 2009, at 2:13 PM, Mateusz Loskot wrote:
> 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)
We can't pass it in const because the caller must be ready to have the
header's dataoffset change. We have to be able to change the
dataoffset or we won't be able to read points if the caller passed in
any old value.
I have made a pass at implementing this in main if you want to take a
look.
Howard
More information about the Liblas-devel
mailing list