-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Could not convert to geojson::Geometry #81
Comments
Thanks for the bug report! This is likely because of mismatched versions between dependencies. Can you |
@frewsxcv Thank you! Running |
Glad that worked! I created a new issue for tracking the version mismatch: #82 |
For new users coming into this issue, please check rust-lang/rust#22750 |
First of all, thanks for this library.
I am experimenting an issue converting from geos::Geometry to geojson::Geometry type. It looks like the readme has not been updated since this commit 1614a49 makes use of the std TryFrom trait.
I have this sample code:
and the compiler shows this error:
I have the geos library with json feature enabled.
Curiously, the code compiles by first doing a conversion to geo_types and then to geojson
I found here
geos/src/enums.rs
Line 5 in 0a4862d
It looks like the geojson::Geometry type has not implemented the TryFrom crate within to_geojson.rs file.
Let me know your opinion
The text was updated successfully, but these errors were encountered: