Wrong collections for geospatial $within $center

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Environment:
      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
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      [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

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

              Created:
              Updated:
              Resolved: