0

我有一个数据集:

 s
'308342.38 6964462.78 122.15 16 1 1 0 0 1 0 114.985 7.1653 '

type (s)
<type 'str'>

我想做的是创建一个 liblas.point.Point 并将它(有几百万个点)保存在一个 *.las 文件中

file_out = lasfile.File(outFile,mode='w')

这是消息错误:

file_out.write(s)
Traceback (most recent call last):
File "<interactive input>", line 1, in <module>
File "C:\Python27\lib\site-packages\liblas\file.py", line 382, in write
'be of type liblas.point.Point' % pt)
4

1 回答 1

1

您可以Point通过实例化它来创建实例:

pt = liblas.point.Point()

然后,您只需填写其字段(xyz等)即可write

于 2012-10-10T15:45:48.130 回答