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

Wrong collections for geospatial $within $center

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • None
    • None
    • None
    • None
    • Ubuntu karmic 9.10
      root@unix:/var/lib/mongodb# mongod --version
      db version v1.5.2, pdfile version 4.5
      Thu Jun 17 15:15:06 git version: 03817ed01653204ca474f402e64d54c94ebb1094
    • Linux

    Description

      [PHP]
      $criteria=array('loc'=>array('$within'=>array('$center'=>array(array(51.5221425, -0.1098127),10))));

      Returns results upto 150 miles away

      -OR-

      [MONGO-SHELL]
      center=[51.5221425, -0.1098127];
      radius=10;
      db.vacs.find({"loc" : {"$within" :

      {"$center" : [center, radius]}

      }})

      Returns the same results upto 150 miles away.

      The table was built form a mysql import where it returns the correct results so I know the data is correct if that helps at all

      Attachments

        Activity

          People

            eliot Eliot Horowitz (Inactive)
            mungodungo Alex
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: