- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
QString queryString = QString("SELECT `angle`, `heights` FROM `heights%1` WHERE `angle` / 10 ").arg(camera->cid());
if (from <= 0 || to > 360)
{
if (from <= 0) // to the right of North
{
from += 360;
qSwap<double>(from, to);
}
else if (to > 360) // to the left of North
{
to -= 360;
qSwap<double>(from, to);
}
from += 0.1;
to -= 0.1;
queryString += "NOT ";
}
queryString += QString("BETWEEN %1 AND %2").arg(from, 0, 'f', 1).arg(to, 0, 'f', 1);