georust / geos

Rust bindings for GEOS
https://docs.rs/geos/
MIT License
122 stars 41 forks source link

Expose `copyFromBuffer`, `copyToBuffer`, `copyFromArrays`, `copyToArrays` #117

Closed kylebarron closed 1 year ago

kylebarron commented 1 year ago

👋 Hello!

GEOS 3.10+ includes new APIs to interact between a CoordSeq and external buffers/arrays. This would be useful for me because I'm trying to make interop between GeoArrow and GEOS faster. I'm guessing that these should be faster than a manual approach with iterating because copyFromBuffer should be essentially just a memcpy.

Would you take a PR for this?

GuillaumeGomez commented 1 year ago

A PR is very welcome indeed.