使用python3 的 laspy库给las文件增加新维度, 并使用potreeconverter分割

首先说一下需求, 因为las文件太大需要分割。分割后需要保存分割前的每个点索引。

但是las没有点顺序字段(在网上找了一大堆文档, 没有发现有这个字段),所以在potree分割前需要处理las文件, 给las文件中的每一个点加上全局索引

最终确认是使用python的laspy库, 这个库可以修改las的格式

las参考: https://pythonhosted.org/laspy/tut_part_3.html

             https://max.book118.com/html/2017/0612/113958010.shtm

laspy文档  https://laspy.readthedocs.io/en/latest/

github地址:https://github.com/laspy/laspy

 

potree 使用1.7PRE 或更高版本

potree  github地址:https://github.com/potree/PotreeConverter

 

posted on 2021-07-02 15:05  帅群  阅读(827)  评论(0)    收藏  举报

导航