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

$geowithin does not work for some polygons

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • None
    • None
    • None
    • None
    • ALL

    Description

      Hi Team trying to run the query to fetch all the geometries within given polygon, it does not work. it works for small size polygon though. Please give some insight.
      db.table.find(
                 { "GeJsonGeometry._v" :
              {
            $geoWithin: {
               $geometry:

      {             type: "Polygon",             coordinates: [                [                  [ -180, -46.6038995 ], [ 180, -46.6038995 ], [ 180, 78.7886584 ], [ -180, 78.7886584 ], [ -180, -46.6038995 ]                ]              ]          }

            }
         }
      }
                
      )

      Attachments

        Activity

          People

            Unassigned Unassigned
            arghya.das@accionlabs.com Arghya Chandan Das
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: