3dgeo-heidelberg / py4dgeo

py4dgeo - A Python library for change analysis in 4D point clouds
https://py4dgeo.readthedocs.io
MIT License
76 stars 12 forks source link

Implement .load()/.save() for epoch class including version and kdtree meta data #97

Closed bhoefle-3dgeo closed 2 years ago

bhoefle-3dgeo commented 2 years ago

The epoch class bundles data and kdtree. In many use cases, kdtree building can already been done in preprocessing and not just before change analysis. To enable a user-friendly loading and saving/loading of epochs, the implementation of load/save on top of the pickle of the epoch objects is needed.

Be aware that it might be good to store the kdtree type/class in the epoch object, in case in the future, the kdtree might be replaceable. Further storing the version of pytreedb in the epoch class might be good in case of load/save in order to synchronize stored data (of older software versions) with newer software versions.