[DOCS-1164] Errors in 2.4 release notes geojson/2dsphere section Created: 26/Feb/13  Updated: 01/Mar/13  Resolved: 01/Mar/13

Status: Closed
Project: Documentation
Component/s: None
Affects Version/s: None
Fix Version/s: mongodb-2.4

Type: Bug Priority: Major - P3
Reporter: J Rassi Assignee: Bob Grabar
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to DOCS-641 Document new spherical 2d geo functio... Closed
Participants:
Days since reply: 10 years, 51 weeks, 1 day ago

 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."


Generated at Thu Feb 08 07:40:24 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.