[Liblas-devel] Different behaviour on setting a header to a point

Ingo Maindorfer Ingo.Maindorfer at ipm.fraunhofer.de
Fri Jan 13 18:48:25 EST 2012


Hi all,

it's seemed that Point::Point(Header const* hdr) and void Point::SetHeader(Header const* header) behave completely different. The first one dosen't copy all the schema stuff and just setting the member and then resize internal vector to an default size and dosn't take respect to the point type given in the header argument.

I run into these bug by an assert from laszip which checks for point size. After using the SetHeader() function instead everything works well and maybe it's better to remove the constructor form?

Another pity is the missing of an hint in the tutorial that you have to set an Header to the Points to get the right point type.....

Best Regards,

Slinky

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/liblas-devel/attachments/20120113/4ba1a0bc/attachment.html


More information about the Liblas-devel mailing list