python-summary icon indicating copy to clipboard operation
python-summary copied to clipboard

las头文件读取出现 struct.error

Open LHW6688 opened this issue 3 years ago • 1 comments

Ubuntu Python3.6 self.project_id_1 = struct.unpack('L', f.read(4))[0] 读取las文件出现错误,提示 struct.error: unpack requires a buffer of 8 bytes 按照数据类型对应关系 ‘L’ 读取4个字节,出现错误; 这里的 ‘L’ 修改为 ‘I’即可解决。

LHW6688 avatar May 08 '21 06:05 LHW6688

问题未解决,后面也是L报错

John-chen521 avatar Apr 18 '23 02:04 John-chen521