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
which covers the right area but is invalid, but it should be two polygons (looks like the first counter example in Figure 12 of the section on polygons in the OGC spec, page 28). If the hole from p1 is removed, a valid output is produced. If it is read as a polygon rather than as a multipolygon, the problem also disappears. It shouldn't be a numerical issue (I think) because the coordinates are integral.
This is what the input looks like (p1 is semi-transparent blue, 2 is semi-transparent red):
And the result in green:
The text was updated successfully, but these errors were encountered:
tinko92
changed the title
Difference with rectilinear polygon with integer coordinates produces invalid polygon with disconnected interior
Difference with rectilinear multipolygon with integer coordinates produces invalid polygon with disconnected interior
Dec 9, 2023
The code for reproduction is
The output is
which covers the right area but is invalid, but it should be two polygons (looks like the first counter example in Figure 12 of the section on polygons in the OGC spec, page 28). If the hole from p1 is removed, a valid output is produced. If it is read as a polygon rather than as a multipolygon, the problem also disappears. It shouldn't be a numerical issue (I think) because the coordinates are integral.
This is what the input looks like (p1 is semi-transparent blue, 2 is semi-transparent red):
And the result in green:
The text was updated successfully, but these errors were encountered: