geo-index icon indicating copy to clipboard operation
geo-index copied to clipboard

Functional search_rtree on external memory

Open H-Plus-Time opened this issue 1 year ago • 1 comments

There's a fair amount of change overlap with #55 , the relevant changes are the exported search function in python/src/rtree.rs.

It should accept every buffer protocol object marked as a 1D uint8 array (I've tested with bytes, bytearray, array, memoryview, geoindex_rs.RTree, 1D numpy u1 arrays, all working identically), and raise more or less immediately (importantly, before the unsafe transmute) on anything else.

Parity for KDTree doesn't look terribly difficult, and by the looks of it the api surface is straightforward (prepend everything with the target buffer, basically).

H-Plus-Time avatar Aug 21 '24 13:08 H-Plus-Time

@H-Plus-Time let me know what you think of #57 . I think it's a bit cleaner

kylebarron avatar Aug 21 '24 16:08 kylebarron