-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Possible Bug in GEOS when calculating intersection of two polygons with inner rings? #21647
Comments
Author Name: Jukka Rahkonen (Jukka Rahkonen) Paste also the result geometry from ArcGIS. |
Author Name: Nyall Dawson (@nyalldawson) Thanks - that's helped me track down a possibly related bug in geometry collections. Looks like that intersection operation results in a collection of a string and polygon. Can you please confirm which tool/processing algorithm/menu item you are using to perform the intersection? That will probably need to be updated to handle this case.
|
Author Name: Adrian Klink (@aklink) Nyall Dawson wrote:
Originally this WKT was taken from a Shapefile. This problem (empty geometry) occured, when using:
The second approach (resulting in invalid GeometryCollection) was using Python Scripting in QGIS:
Resulting Geometry in ArcGIS is (Polygon only, since input have been 2 polygons and intersecting line of inner rings has no area, thus is no polygon):
|
Author Name: Adrian Klink (@aklink) Adrian Klink wrote:
Since I mentioned that ArcGIS and QGIS behave different on intersections of polygons (result is polygon only in ArcGIS) there is also a second case (I currently have no example, but I may provide one next week): Two polygons touching each other at a line string behave different in QGIS and ArcGIS:
|
Author Name: Giovanni Manghi (@gioman) this was caused by a change in the qgis code that left several tools in the vector menu "broken" when the result contained a collection, this was fixed recently in qgis master.
|
Author Name: Adrian Klink (@aklink)
Original Redmine Issue: 13608
Affected QGIS version: 2.10.1
As far as I understand, GEOS is responsible for calculationg intersections between polygons in QGIS. When I try to intersect two polygons with inner rings (holes), intersection fails. Is this a possible bug in GEOS module in QGIS? Using ArcGIS creates a valid geometry. I have tried using QGIS 2.10 Pisa 64bit Windows 7 and QGIS 2.10 Pisa 32bit Windows 8.1, using Vector -> Intersection via menu and/or Python scripting. Either I get no geometry or invalid GeometryCollection.
Can someone double check, please?
Here are the polygons (as WKT String, can be imported into QGIS via QuickWKT Plugin):
intersection with:
The text was updated successfully, but these errors were encountered: