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

$geoWithin with a Polygon "ring" fails

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Works as Designed
    • Affects Version/s: 2.5.3
    • Fix Version/s: None
    • Component/s: Querying
    • Environment:
    • Operating System:
      ALL

      Description

      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 }

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: