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

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

    • Type: Icon: Bug Bug
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 2.0.5, 2.4.1
    • Component/s: Geo
    • Query Integration
    • Linux

      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?

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

            Assignee:
            backlog-query-integration [DO NOT USE] Backlog - Query Integration
            Reporter:
            hstclair Hal St. Clair
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated: