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.
With some pointer from mloskot I figured out solution to the issue. For future reference and benefit for other
libLASnewbies I am posting below a small test code I wrote. It uses the samplelasfile srs.las from libLAS website, modifies thezvalues and writes it out to a newlasfile.