[SERVER-3320] Assertion error on Box queries with -80 and 180 longitude values Created: 23/Jun/11  Updated: 30/Mar/12  Resolved: 27/Jun/11

Status: Closed
Project: Core Server
Component/s: Geo
Affects Version/s: 1.8.2
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Matteo Muratori Assignee: Greg Studer
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Linux CentOS 5.5 64bit


Operating System: ALL
Participants:

 Description   

db.MyTable.find({ 'pos': { $within: { $box: [[-180, -90], [180, 90]] }} }) <-- error:

{ "$err" : "assertion db/geo/2d.cpp:236" }

-180 and 180 longitude values make the assertion out; -90 and 90 latitude values seems instead to be ok.



 Comments   
Comment by Greg Studer [ 27/Jun/11 ]

This is a known issue in 1.8, SERVER-2386, workaround until 1.9 is to increase your bounds slightly - -90/90 works because the bounds are -180/180 for everything.

Generated at Thu Feb 08 03:02:44 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.