-
Type: Bug
-
Resolution: Unresolved
-
Priority: Major - P3
-
None
-
Affects Version/s: 2.6.8
-
Component/s: Geo
-
Query Integration
-
ALL
-
The $geoWithin and $geoIntersects operators do not retrieve (parts of) the border of the polygon that they are queried with. This doesn't make sense, and the docs seem to agree:
When determining inclusion, MongoDB considers the border of a shape to be part of the shape, subject to the precision of floating point numbers.
This issue presents itself when all coordinate pairs of a linestring intersect (i.e. are part of) the polygon border. When one of the line's points on the border is moved to the inside of the polygon, that line is retrieved by the query as expected.
I would be surprised if this issue is caused by floating point precision or the spherical reference system.
- is duplicated by
-
SERVER-18186 $geoWithin edge problems
- Closed
- related to
-
SERVER-5915 Polygon::contains() can return wrong result with points on edge
- Backlog
-
SERVER-13599 $geoIntersects does not return polygon with shared edge
- Backlog