centreborelli / s2p

Satellite Stereo Pipeline
GNU Affero General Public License v3.0
209 stars 67 forks source link

Full cloud.ply #108

Closed DieProgrammIDE closed 2 years ago

DieProgrammIDE commented 2 years ago

Hello, How can i get a Point Cloud from the whole Area?

gfacciol commented 2 years ago

Yes, you can joint all the ply in a single point cloud. However, the ply format is not adapted to handle billions of points, so instead we use a potree. The script utils/s2p_to_potree.py should do the job:

https://github.com/centreborelli/s2p/blob/7121ee3f299e163e76f6c92c8c8fc163b02835f2/utils/s2p_to_potree.py#L176

DieProgrammIDE commented 2 years ago

I need it in the LAS Format to process with danesfield. That's why i want to merge them.

gfacciol commented 2 years ago

I'm not aware of a single tool that would do the conversion, but I think it should be easy to script as:

1st: convert all ply to las using plyfile and laspy to read and write each file https://github.com/dranjan/python-plyfile https://github.com/laspy/laspy

2nd: merge all the las files using lasmerge https://rapidlasso.com/lastools/lasmerge/