# py_geo_interface
[](https://crates.io/crates/py_geo_interface)
[](https://docs.rs/py_geo_interface)

[](https://deps.rs/repo/github/nmandery/py_geo_interface)
Exchange vector geometries between Rust and Python using [pyo3](https://pyo3.rs) and [Pythons `__geo_interface__` protocol](https://gist.github.com/sgillies/2217756).
The `__geo_interface__` protocol is implemented by most popular geospatial python modules like `shapely`, `geojson`, `geopandas`, ... .
While this protocol also defines `Features` and `FeatureCollections`, this library so far only focuses on the `Geometry` type, as
this one can be directly mapped to the types of the `geo-types` crate.
For usage examples see the [documentation](https://docs.rs/py_geo_interface).
[Changelog](./CHANGES.md)
### License
<sup>
Licensed under either of <a href="LICENSE-APACHE">Apache License, Version
2.0</a> or <a href="LICENSE-MIT">MIT license</a> at your option.
</sup>