Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-1164

Errors in 2.4 release notes geojson/2dsphere section

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major - P3 Major - P3
    • mongodb-2.4
    • None
    • None
    • None

    Description

      Typo in query operator example:

      > db.collection.find( { $geoIntersects: { $geometry: { "type": "Point", "coordinates": [ 40, 5 ] } } } )
      error: { "$err" : "invalid operator: $geometry", "code" : 10068 }
      >

      I assume this is the correct usage:

      > db.collection.find( { geo: { $geoIntersects: { $geometry: { "type": "Point", "coordinates": [ 40, 5 ] } } } } )
      { "_id" : ObjectId("512d118cd0278926be8c93e9"), "geo" : { "type" : "Point", "coordinates" : [ 40, 5 ] } }
      > 

      Also, not a sentence: "To query 2dsphere indexes, all current geospatial query operators with an additional $geoIntersects operator."

      Attachments

        Activity

          People

            bgrabar Bob Grabar
            rassi J Rassi
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              10 years, 51 weeks, 1 day ago