[DOCS-8645] Comment on: "manual/indexes.txt" Created: 23/Aug/16  Updated: 11/Jan/17  Resolved: 23/Aug/16

Status: Closed
Project: Documentation
Component/s: None
Affects Version/s: None
Fix Version/s: 01112017-cleanup

Type: Bug Priority: Major - P3
Reporter: Docs Collector User (Inactive) Assignee: Unassigned
Resolution: Done Votes: 0
Labels: collector-298ba4e7
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

centos7

Location: https://docs.mongodb.com/manual/indexes/
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.106 Safari/537.36
Referrer: https://www.mongodb.com/
Screen Resolution: 1366 x 768


Participants:
Days since reply: 7 years, 25 weeks, 1 day ago

 Description   

hey:
i created a 2dsphere index in document.but when i save a data,mongodb throw a exception like:
gpsData:

{ type: \"Point\", coordinates: [ -7.595727, 110.424857 ] }

, cityName: \"����\" } longitude/latitude is out of bounds

then i searched this longitude/latitude in google map,it can location a address.so i don't know how to deal this.
could you help me.thanks!



 Comments   
Comment by Allison Reinheimer Moore [ 23/Aug/16 ]

MongoDB uses (longitude,latitude) for its coordinates, not (latitude, longitude), which can be confusing.

I believe you have your coordinate pair backwards – you're getting the error because latitudes range from -90 to 90, and you're stating that the latitude is 110.424857, which is invalid.

If you're running into trouble with MongoDB, I'd suggest posting to our Google Group . The documentation project is really best suited to issues with the docs themselves.

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