Add some margins when retriving objects
This commit is contained in:
@@ -453,7 +453,8 @@ SkyGrid WCSDataT::prepareGrid(uint32_t w, uint32_t h, Database *database)
|
|||||||
|
|
||||||
if(database)
|
if(database)
|
||||||
{
|
{
|
||||||
skyGrid.objects = database->getObjects(minRa, maxRa, minDec, maxDec);
|
double size = std::max(maxRa - minRa, maxDec - minDec);
|
||||||
|
skyGrid.objects = database->getObjects(minRa - size, maxRa + size, minDec - size, maxDec + size);
|
||||||
for(auto &object : skyGrid.objects)
|
for(auto &object : skyGrid.objects)
|
||||||
{
|
{
|
||||||
QPointF p;
|
QPointF p;
|
||||||
|
|||||||
Reference in New Issue
Block a user