[Liblas-devel] floating point round off problem in libLAS Python API
Jitendra Kumar
jitendra.ornl at gmail.com
Wed Mar 12 21:02:21 PDT 2014
I am trying to use libLAS Python API to write point data sets to *.las
file. But I am experiencing some problems with the floats values being
rounded off
>>> from liblas import point
>>> pt=point.Point()
>>> pt.x=2.323
>>> pt.x
2.0
>>>
If I set the pt.raw_x instead of pt.x I don't see the rounding off problem
but no las file is written.
>>> pt.raw_x=2.323
>>> pt.raw_x
2.323
I am not sure what am I missing. I would appreciate any help with this.
Thanks,
Jitu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/liblas-devel/attachments/20140313/00d957ca/attachment.html>
More information about the Liblas-devel
mailing list