[Liblas-devel] liblas and laspy

gianni lavaredo gianni.lavaredo at gmail.com
Tue Oct 9 09:13:47 PDT 2012


Dear member list,

I am trying the module laspy and see the difference between liblas, but i
get this problem. Following the example in page
http://packages.python.org/laspy/file.html



inFile = "mylas.las"
f = file.File(inFile, mode='r')
for p in f:
...     print 'X,Y,Z: ', p.x, p.y, p.z
...
X,Y,Z: Traceback (most recent call last):
  File "<interactive input>", line 2, in <module>
AttributeError: Point instance has no attribute 'x'


>>> f[0]
<laspy.util.Point instance at 0x000000000F19CF48>
>>> f[0].X
30839973
>>>

I can have my X value.

Any helps is really appreciate especially to develop a list comprehension

Thanks in advance
Gianni
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/liblas-devel/attachments/20121009/c001d2d3/attachment.html>


More information about the Liblas-devel mailing list