Use the new SGBucket api

This commit is contained in:
Christian Schmitt 2014-02-21 17:38:26 +01:00
parent b4ecb6f2db
commit 94bbed80d0

View File

@ -138,7 +138,7 @@ public:
{ {
// left align longitude offsets // left align longitude offsets
unsigned offset = _offset[0] - _offset[0] % _bucketSpanAtOffset(_offset[1]); unsigned offset = _offset[0] - _offset[0] % _bucketSpanAtOffset(_offset[1]);
return SGBucket(_offsetToLongitudeDeg(offset), _offsetToLatitudeDeg(_offset[1])); return SGBucket( SGGeod::fromDeg(_offsetToLongitudeDeg(offset), _offsetToLatitudeDeg(_offset[1])) );
} }
BucketBox getParentBox(unsigned level) const BucketBox getParentBox(unsigned level) const