[MDEV-7525] GIS: ST_NumInteriorRings returns 1 on a polygon consisting of two separate parts Created: 2015-01-28 Updated: 2015-06-23 Resolved: 2015-06-23 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | GIS |
| Affects Version/s: | N/A |
| Fix Version/s: | 10.1.6 |
| Type: | Bug | Priority: | Minor |
| Reporter: | Elena Stepanova | Assignee: | Alexey Botchkov |
| Resolution: | Won't Fix | Votes: | 0 |
| Labels: | gis | ||
| Attachments: |
|
||||||||
| Issue Links: |
|
||||||||
| Sprint: | 10.1.6-1 | ||||||||
| Description |
|
I am not sure what is the correct behavior here. The polygon consists of two separate parts (see the picture). Here http://support.esri.com/en/knowledgebase/GISDictionary/term/polygon I see two definitions of 'polygon':
The polygon in question fits the second definition. Also, PostGIS which is rather strict about misuse of different shapes, agrees to create it as a polygon. But both PostGIS and MariaDB return ST_NumInteriorRings = 1 for it. I don't know why, obviously there are no interior rings in here. I could not however find a clear definition of how ST_NumInteriorRings should behave in this case.
|
| Comments |
| Comment by Alexey Botchkov [ 2015-06-23 ] |
|
That contradiction was created by the OpenGIS standard. |
| Comment by Ian Gilfillan [ 2015-06-23 ] |
|
I have documented this on the https://mariadb.com/kb/en/mariadb/st_numinteriorrings/ page, will also do so on the https://mariadb.com/kb/en/mariadb/polygon page |