jorisvandenbossche / python-geoarrow

Storing geometry data in Apache Arrow format
MIT License
14 stars 0 forks source link

Question on filtering #1

Open thomafred opened 1 year ago

thomafred commented 1 year ago

Very cool project!

I was wondering how one would go about creating geospatial filtering operators such as contains, intersects, etc?

kylebarron commented 1 year ago

I can't speak for joris but the most performant way will likely be through connecting the GeoArrow arrays to @paleolimbot's C implementation https://github.com/geoarrow/geoarrow-c or my Rust implementation https://github.com/kylebarron/geoarrow-rs/. Both projects are working on geometry operations

thomafred commented 1 year ago

@kylebarron This is awesome! Thanks!

I might be missing any examples on using these filters. Do you know where they are?

paleolimbot commented 1 year ago

The implementations are all very new, so I don't know that there are any examples (any version of contains or intersects would be in Kyle's Rust implementation but I don't think that's ported to Python yet)!

kylebarron commented 1 year ago

Yeah I don't have either exposed to Python. I think I've wrapped them in Rust, but they won't be super performant anyways because they aren't connected to a spatial index yet