mirror of
https://github.com/tumic0/GPXSee.git
synced 2024-11-27 21:24:47 +01:00
Compare commits
2 Commits
c4b85ef493
...
73fa197c25
Author | SHA1 | Date | |
---|---|---|---|
73fa197c25 | |||
4d17dd5b92 |
@ -1,4 +1,4 @@
|
||||
version: 13.20.{build}
|
||||
version: 13.21.{build}
|
||||
|
||||
configuration:
|
||||
- Release
|
||||
|
@ -3,7 +3,7 @@ unix:!macx:!android {
|
||||
} else {
|
||||
TARGET = GPXSee
|
||||
}
|
||||
VERSION = 13.20
|
||||
VERSION = 13.21
|
||||
|
||||
|
||||
QT += core \
|
||||
|
@ -37,7 +37,7 @@ Unicode true
|
||||
; The name of the installer
|
||||
Name "GPXSee"
|
||||
; Program version
|
||||
!define VERSION "13.20"
|
||||
!define VERSION "13.21"
|
||||
|
||||
; The file to write
|
||||
OutFile "GPXSee-${VERSION}_x64.exe"
|
||||
|
@ -269,18 +269,22 @@ void IMGMap::draw(QPainter *painter, const QRectF &rect, Flags flags)
|
||||
|
||||
double IMGMap::elevation(const Coordinates &c)
|
||||
{
|
||||
QList<MapData::Elevation> tiles;
|
||||
DEM::DEMTRee tree;
|
||||
MapData *d = _data.first();
|
||||
double ele = NAN;
|
||||
|
||||
d->elevations(RectC(Coordinates(c), Coordinates(c)), d->zooms().max(),
|
||||
&tiles);
|
||||
if (d->hasDEM()) {
|
||||
QList<MapData::Elevation> tiles;
|
||||
DEM::DEMTRee tree;
|
||||
double ele = NAN;
|
||||
|
||||
DEM::buildTree(tiles, tree);
|
||||
DEM::searchTree(tree, c, ele);
|
||||
d->elevations(RectC(Coordinates(c), Coordinates(c)), d->zooms().max(),
|
||||
&tiles);
|
||||
|
||||
return ele;
|
||||
DEM::buildTree(tiles, tree);
|
||||
DEM::searchTree(tree, c, ele);
|
||||
|
||||
return ele;
|
||||
} else
|
||||
return Map::elevation(c);
|
||||
}
|
||||
|
||||
Map* IMGMap::createIMG(const QString &path, const Projection &proj, bool *isDir)
|
||||
|
Loading…
Reference in New Issue
Block a user