Files
documentdb/pg_helio_api/include/metadata
Deepak Bisht 5cb7bf4ca5 Merged PR 1394849: Geospatial Internal self intersection errors for $polygon
### Does this PR have any customer impact?
Yes

### Type (Feature, Refactoring, Bugfix, DevOps, Testing, Perf, etc)
Bugfix

### Does it involve schema level changes? (Table, Column, Index, UDF, etc level changes)
No

### Are you introducing any new config? If yes, do you have tests with and without them being set?
No

### Release Note (Refer [Template](../docs/release_notes/pgmongo_template.md))
- Bugfix with $polygon self intersecting geometry

### Description
MongoDB is not restrictive when the 2d polygon is created using `$polygon`

Here the polygon defined by `$polygon` is not a valid polygon as it intersects with itself
`[[10, 10], [10, 12], [11, 11], [9, 11]]`

![image.png](https://msdata.visualstudio.com/ba574a88-a171-48e0-8fcb-5fef6d23739c/_apis/git/repositories/501a5e7e-ffdc-4d1e-a5e6-910f73c6eb9a/pullRequests/1394849/attachments/image.png)

But similar query in Postgis would not work and we can always make them valid using ST_makevalid:
![image (2).png](https://msdata.visualstudio.com/ba574a88-a171-48e0-8fcb-5fef6d23739c/_apis/git/repositories/501a5e7e-ffdc-4d1e-a5e6-910f73c6eb9a/pullRequests/1394849/attachments/image%20%282%29.png)
2024-07-05 13:16:04 +03:00
..
2024-01-12 19:10:20 +00:00
2024-01-12 19:10:20 +00:00