You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to use this crate without further dependencies (I only need the union functionality really). I can do this currently if I modify the first line of /lib/src/boolean/mod.rs to:
As an aside, I tried just using the latest version of geo_types in addition to this crate in my Cargo.toml and it failed to import/recognise the BooleanOp trait on the Polygon type. The above would also resolve this issue (unless there's something obvious I am missing?).
The text was updated successfully, but these errors were encountered:
it failed to import/recognise the BooleanOp trait on the Polygon type
Possibly due to a mismatch in versions, causing duplicated geo-types in your dependency tree. You can check with cargo tree -d and see if geo-types appears with two different versions.
The above would also resolve this issue (unless there's something obvious I am missing?).
I think you're right that it'd resolve your immediate issue: you'd be able to use boolean-ops on the geometries exported from this crate, but since it sounds you are using another crate which relies on an incompatible geo-types, you might just have a similar issue somewhere else.
The thing I usually want, and somewhat commonly stumble at, is to get all my crates depending on the same version so they can interop.
See also #33 which updates this crate to use the latest geo-types.
I would like to use this crate without further dependencies (I only need the union functionality really). I can do this currently if I modify the first line of
/lib/src/boolean/mod.rs
to:As an aside, I tried just using the latest version of
geo_types
in addition to this crate in myCargo.toml
and it failed to import/recognise theBooleanOp
trait on thePolygon
type. The above would also resolve this issue (unless there's something obvious I am missing?).The text was updated successfully, but these errors were encountered: