georust / geos

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

Implement TryFrom<geo_types::Geometry> for GEOS Geometry #155

Open jake-low opened 2 months ago

jake-low commented 2 months ago

...and also TryFrom

I noticed that these two trait implementations were missing, and they seemed like they'd be useful inclusions. Each is sort of necessary to implement the other: a Geometry can wrap a GeometryCollection, and a GeometryCollection is made up of Geometrys (in order to wrap the heterogeneous members in a uniform type). The unit test I added exercises both conversions.

Feedback is very welcome.

GuillaumeGomez commented 2 months ago

Weird, it seems like building libgeos in the CI is not working anymore...