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

GeoIntersects example is incorrect

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: mongodb-2.4
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Last comment by Customer:
      true

      Description

      http://docs.mongodb.org/manual/release-notes/2.4/#op._S_geoIntersects

      The example is missing a field. Should probably be:

      db.collection.find( { loc: { $geoIntersects: { $geometry: { "type": "Point", "coordinates": [ 40, 5 ] }}}} )

        Attachments

          Activity

            People

            Assignee:
            sam.kleinman Sam Kleinman (Inactive)
            Reporter:
            aheckmann Aaron Heckmann
            Participants:
            Last commenter:
            Jonathan Dahl Jonathan Dahl
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since reply:
              8 years, 40 weeks, 5 days ago
              Date of 1st Reply: