Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-5915

Polygon::contains() can return wrong result with points on edge

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major - P3 Major - P3
    • None
    • 2.0.5, 2.4.1
    • Geo
    • Query Integration
    • Linux

    Description

      The result set from the attached example code, depending on the value of 'increment', should always contain a square number of entries: 1, 9, 25, 49, 81, 121...

      when 'increment' is .1, the number produced should be 441 but only 400 are generated. Further, when 'offset' is 2, 391 entries are generated.

      Dude, what gives?

      Attachments

        1. diagram.png
          diagram.png
          75 kB
        2. mongotest.js
          0.4 kB

        Activity

          People

            backlog-query-integration Backlog - Query Integration
            hstclair Hal St. Clair
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated: