Skip to content

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

Description

@rtroilo

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bugSomething isn't working as expected

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions