3DBAG / roofer

Automatic LoD2.2 building reconstruction
https://3dbag.github.io/roofer/
GNU General Public License v3.0
11 stars 2 forks source link

Handle arbitrarily large inputs efficiently with crop app #8

Closed Ylannl closed 1 month ago

Ylannl commented 5 months ago

crop should be able to read arbitrarily large inputs without running out of memory. Strategy is to

  1. build a spatial of index input files
  2. Stream read the points and accumulate them in the building footprints.
  3. Once all points for a building have been read we can output that building and release the memory it occupied.

this should build further on how the StreamCropper currently already works. Initially implemented on one thread, multithreading can be added later if it makes sense. Output can be written to disk or streamed directly into the reconstruct app. Preferably this is done in a way with minimal overhead due to encoding/decoding.