[SERVER-31412] Edges cross error for near edges Created: 05/Oct/17 Updated: 27/Oct/23 Resolved: 06/Oct/17 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Geo |
| Affects Version/s: | 3.4.9 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | George Stepanov | Assignee: | Mark Agarunov |
| Resolution: | Works as Designed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Attachments: |
|
||||||||||||||||||||||||||||||||||||||||||||||||
| Operating System: | ALL | ||||||||||||||||||||||||||||||||||||||||||||||||
| Steps To Reproduce: |
|
||||||||||||||||||||||||||||||||||||||||||||||||
| Participants: |
| Description |
|
Cannot insert a polygon with near edges. Edges are very close to each other, but not crossing actually. |
| Comments |
| Comment by Mark Agarunov [ 06/Oct/17 ] | |||||||||||||||||||||||||||||||
|
Hello gstepanov, Thank you for the report. While the polygon you provided does not intersect if it is on a flat surface, the lines do appear to intersect when on the surface of a sphere due to the distortion of mapping a flat object to a spherical surface. When plotted on a map which uses Geodesic (spherical) projection, you can see this intersection: If this polygon is slightly modified as follows:
The lines of the polygon no longer intersect when mapped on a sphere: This polygon can be inserted to mongod without error. Thanks, |