geo-index
geo-index copied to clipboard
A Rust crate and Python library for packed, static, zero-copy spatial indexes.
``` # Find the nearest neighbors in the RTree to the point (5, 5) results = rt.neighbors(tree, 5, 5) ``` What is the definition of nearest (or distance in general)...
In both rust and python docs
This is primarily for a potential blog post of how the zero-copy format works. It's not intended to be used in production at this point.
At least, as long as float64 input is provided, so that we can downcast manually (We should also add tests for this)
Add method that tells the maximum bytes of memory used in the builder process (including the hilbert values). Maybe this should be on the `sort` trait?
From https://github.com/kylebarron/geo-index/issues/83
From #83
It would be nice to finish this but also ensure this isn't a performance regression. It feels like the iterator has to repeat some steps that the existing method doesn't....
Right now, our nearest neighbors implementation returns a materialized vec of _all_ values that are within `max_distance` and `max_results`, but instead it would be cleaner to just return an iterator....