Is there anything along the lines of https://github.com/libspatialindex/libspatialindex in julia?
Implementations of Spatial Indices
I’m looking for a R-tree implementation similar to https://github.com/KristofferC/NearestNeighbors.jl
Update: Ah, I see there’s an https://github.com/BioJulia/IntervalTrees.jl package, except I’m interested in 2-3 dimensions
@visr @fabiangans may I trouble either of you to run Clang.jl on libspatialindex’s C API?
Great, I see you already got it running. Will be a nice addition. Would also be fun to implement some more of these in Julia, see this blog post:
https://blog.mapbox.com/a-dive-into-spatial-search-algorithms-ebd0c5e39d2a
And the authors JS package for R-trees, https://github.com/mourner/rbush
For people in search of alternative implementations for spatial indices, I was just made aware of a few other options by @evetion (on the slack channel):
- RegionTrees.jl for QuadTrees which is a popular choice for point cloud data
-
LASIndex.jl which reads
.lax
files into a quadtree from the RegionTrees package.
FYI, I’ve just started SpatialIndexing.jl. Currently there’s pure Julia implementation of R-tree (different flavors including R*-tree). It’s already working (insertion, deletion, bulk loading), but the API is not stabilized (and the query API is not implemented yet).