-
Notifications
You must be signed in to change notification settings - Fork 165
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
is_simple? Does Not Return False #80
Comments
I'm still seeing this issue. Any thoughts or movement on it? I have tried to debug, but to no avail thus far. This renders CAPI unusable for my situation. |
|
Hi the FFI and Geographic mercator factories appear to also return ::RGeo::Geos::FFIFactory.new.parse_wkt('POLYGON ((-73.0 40.0, -73.5 40.0, -73.0 40.5, -73.5 40.5, -73.0 40.0))').is_simple? ::RGeo::Geographic.simple_mercator_factory.parse_wkt('POLYGON ((-73.0 40.0, -73.5 40.0, -73.0 40.5, -73.5 40.5, -73.0 40.0))').is_simple? Image below of the example polygon. |
A simple polygon does not intersect itself.
This appears to cause another issue with intersection (from Google Groups: https://groups.google.com/forum/#!topic/rgeo-users/lZNn9T0mbUc)
I believe
is_simple?
relies on the GEOS library, so we might have to dig into the wrapper.The text was updated successfully, but these errors were encountered: