Closed msorvoja closed 1 week ago
The final optimized version does not use cKDTree
, only Numba.
Performance comparison of old and new version:
Old version
New version
Old version
New version
@nmaarnio Tested with IOCG point, line and polygon data, and the results look good to me!
There was a bug @Mtk112 noticed that occurred for some numpy and rasterio versions on Windows at least. It should be fixed now.
This PR should be ready to be merged now 🚀
Adds an optimized version of distance computation using spatial indexing (
scipy.spatial.cKDTree
) for nearest neighbor search and Numba (njit
decorator) for more efficient computation of distances. Old and new implementation are compared innotebooks/testing_distance_computation.ipynb
.