[SERVER-1191] $within:$center returns documents outside of the given circle Created: 03/Jun/10 Updated: 12/Jul/16 Resolved: 30/Jun/10 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Geo |
| Affects Version/s: | 1.5.2 |
| Fix Version/s: | 1.5.4 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Tomas Carnecky | Assignee: | Richard Kreuter (Inactive) |
| Resolution: | Done | Votes: | 2 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Participants: |
| Description |
|
The first command returns a document which is outside of the given circle. Decreasing the radius doesn't help. The geoNear command returns the same object but calculates a distance which is higher than the radius used in the above command. ); } , |
| Comments |
| Comment by Richard Kreuter (Inactive) [ 30/Jun/10 ] |
|
By inspection, this bug went away in commit 93661510e975f9c8a62f315c6a602fecbf50cbfb. |
| Comment by auto [ 08/Jun/10 ] |
|
Author: {'login': 'kreuter', 'name': 'Richard Kreuter', 'email': 'richard@10gen.com'}Message: Add an error term for distance comparisons in geo search. Part of |
| Comment by Eliot Horowitz (Inactive) [ 03/Jun/10 ] |
|
its for floating point rounding errors it needs to scale intelligently though will change |
| Comment by Tomas Carnecky [ 03/Jun/10 ] |
|
While looking through the source I found this: (http://github.com/mongodb/mongo/blob/master/db/index_geo2d.cpp#L1347) virtual bool checkDistance( const GeoHash& h , double& d ){ Why is there the +.01? If I replace it with .000001 the query from the description no longer returns the document (which is the correct behavior). |