Skip to content

Commit

Permalink
add error bounds to polygon bbox
Browse files Browse the repository at this point in the history
  • Loading branch information
gregs committed Aug 4, 2011
1 parent ec9147a commit dceaf5b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion db/geo/2d.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2363,7 +2363,7 @@ namespace mongo {
uassert( 14030, "polygon must be defined by three points or more", _poly.size() >= 3 );

_bounds = _poly.bounds();
_maxDim = _bounds.maxDim() / 2;
_maxDim = _g->_error + _bounds.maxDim() / 2;

ok();
}
Expand Down
2 changes: 1 addition & 1 deletion jstests/slowWeekly/geo_full.js
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ var numTests = 100
// Our seed will change every time this is run, but
// each individual test will be reproducible given
// that seed and test number
var seed = Math.floor( Random.rand() * ( 10 ^ 30) )
var seed = new Date().getTime()

for ( var test = 0; test < numTests; test++ ) {

Expand Down

0 comments on commit dceaf5b

Please sign in to comment.