Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-2156

It is undefined whether a point on the edge of a polygon is inside or outside

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Won't Fix
    • Icon: Major - P3 Major - P3
    • 01112017-cleanup
    • None
    • manual

    Description

      By design, one can't rely on a point on the boundary of a polygon to be inside or outside the polygon. For example, if a line has an endpoint with the same coordinates as a corner of a square, we don't specify whether $geoIntersects will consider the two shapes intersecting or not: MongoDB will sometimes consider them intersecting, sometimes not, depending on the numbers involved.

      This should be clarified in the manual so that users know of this behavior.

      Attachments

        Activity

          People

            kay.kim@mongodb.com Kay Kim (Inactive)
            jesse@mongodb.com A. Jesse Jiryu Davis
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              7 years, 29 weeks ago