Spherical distance trying to wrap when not required

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Major - P3
    • None
    • Affects Version/s: 1.8.0
    • Component/s: Geo
    • None
    • Environment:
      Linux 2.6.36-ARCH #1 SMP PREEMPT Fri Dec 10 20:32:37 CET 2010 x86_64 Intel(R) Core(TM) i5 CPU 750 @ 2.67GHz GenuineIntel GNU/Linux
    • ALL
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      Here is what I am trying to do :
      > db.locations.save(

      {"loc" : [ 1.2999999523162842, 103.86000061035156 ]}

      )
      > db.locations.find()

      { "_id" : ObjectId("4dc121bc8c001c37f7238139"), "loc" : [ 1.2999999523162842, 103.86000061035156 ] }

      > db.locations.ensureIndex(

      { loc : "2d" }

      )
      > db.locations.find({loc : { $within :

      { $centerSphere : [[1.29674806757343, 99.847579956055], 0.0003139224611520954]}

      }})
      error: {
      "$err" : "Spherical distance would require wrapping, which isn't implemented yet",
      "code" : 13462
      }

      I checked this bug https://jira.mongodb.org/browse/SERVER-2408
      But in my case, I am not trying to use large distance.

      I got the same error with following centers :
      [-33.8726005554199, 151.195999145508]
      [13.7576999664307, 100.490997314453]

      and even with shorter distance.

      As I am not sure about the expected behavior, and when wrapping is required, apologize if this is not a bug

            Assignee:
            Greg Studer (Inactive)
            Reporter:
            Damien Vouriot
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: