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

$geoWithin with a Polygon "ring" fails

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 2.5.3
    • Component/s: Querying
    • Environment:
    • ALL

      Problem:
      A $geoWithin with a Polygon "ring" fails in 2.5.4-Pre (whereas is returns data in 2.4.5)

      Reproduce:

      db.q.drop()
      db.q.insert({ "_id" : 5, "loc" : { "type" : "Point", "coordinates" : [  0,  90 ] } })
      db.q.find( { "loc" : { $geoWithin : { $geometry : { type : "Polygon" , coordinates : [ [ [2,2],[3,3],[4,2],[2,2] ] , [ [0,0],[-180,0],[-180,90],[180,90],[0,0] ] ] } } } } )
      

      2.4.5 - returns data
      2.5.4-Pre

      error: { "$err" : "bad query: BadValue bad geo query", "code" : 16810 }
      

            Assignee:
            jesse@mongodb.com A. Jesse Jiryu Davis
            Reporter:
            alvin Alvin Richards (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: