在python中保存laspy文件(.las)时,如何将数据添加到自定义维度?只要我知道新维度的名称,定义并向其中添加数据就没有问题: header = laspy.header.Header(point_format=2) for dim in extra_dims:
f.define_new_dimension(name = dim["name"],
"C:\OpenMMS\code\openmms_georeference_livox.py", line 1072, in outputPrcsPoints_l_verboseAttributeError: module 'laspy.header' has no attribute 'Header'
为什么会出现这个错误?
转换函数似乎只有在执行laspy.read()时才能工作。但是,块迭代器的全部要点是不需要一次读取完整的文件。这就是我认为laspy.convert()的一个例子将与块迭代器一起工作的方式。# READ IN FILE forchunk in las_open.chunk_iterator(1_000_000):
chun
'float' object has no attribute 'append'到目前为止,我知道我需要一个数组来将值保存到代码末尾的las文件中:import numpy as pinFile2 = laspy.file.File("C:\\Users\\Geri\\Desktop\\Sync\\pythonlas