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

$geoWithin with a Polygon "ring" fails

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Works as Designed
    • 2.5.3
    • None
    • Querying
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: