Skip to content
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

Incorrect geometry for (Multi)Polygon with hole touching shell at a shared point! #471

Open
rtroilo opened this issue Nov 2, 2022 · 0 comments
Assignees
Labels
bug Something isn't working as expected

Comments

@rtroilo
Copy link
Member

rtroilo commented Nov 2, 2022

related to #424.

A valid Polygon with a hole POLYGON((0 0,0 2,2 2,4 2,4 0,0 0),(2 2,1 1,3 1,2 2))

    lat
     ^
     |
     2   b --- c --- f
         |     /\    |
     1   |   d -- e  |
         |           |
     0   a --------- g
       
         0  1  2  3  4 -> lon
  
with ways:
   A: (a, b, c)
   B: (c, d)
   C: (d, e, c)
   D: (c, f, g, a)
   

Could produce wrongly a overlapping and invalid Multipolygon like MULTIPOLYGON (((2 2, 1 1, 3 1, 2 2)), ((0 0, 0 2, 2 2, 4 2, 4 0, 0 0))) for permutation B:(c, d)C:(d,e,c)A:(a,b,c)D:(c,f,g,a)

You will find a test at dbe4045

@rtroilo rtroilo added the bug Something isn't working as expected label Nov 2, 2022
rtroilo added a commit that referenced this issue Nov 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working as expected
Projects
None yet
Development

No branches or pull requests

3 participants