mirror of
https://github.com/tumic0/GPXSee.git
synced 2025-02-23 02:30:49 +01:00
Compare commits
No commits in common. "335df85faece022aab0b69d0dc4ca27f6c5a9db8" and "b3fd46a225b2fd5349095b5f8daaaa8468ac3d63" have entirely different histories.
335df85fae
...
b3fd46a225
@ -1,4 +1,4 @@
|
|||||||
version: 13.35.{build}
|
version: 13.34.{build}
|
||||||
|
|
||||||
configuration:
|
configuration:
|
||||||
- Release
|
- Release
|
||||||
|
@ -3,7 +3,7 @@ unix:!macx:!android {
|
|||||||
} else {
|
} else {
|
||||||
TARGET = GPXSee
|
TARGET = GPXSee
|
||||||
}
|
}
|
||||||
VERSION = 13.35
|
VERSION = 13.34
|
||||||
|
|
||||||
|
|
||||||
QT += core \
|
QT += core \
|
||||||
|
@ -37,7 +37,7 @@ Unicode true
|
|||||||
; The name of the installer
|
; The name of the installer
|
||||||
Name "GPXSee"
|
Name "GPXSee"
|
||||||
; Program version
|
; Program version
|
||||||
!define VERSION "13.35"
|
!define VERSION "13.34"
|
||||||
|
|
||||||
; The file to write
|
; The file to write
|
||||||
OutFile "GPXSee-${VERSION}_x64.exe"
|
OutFile "GPXSee-${VERSION}_x64.exe"
|
||||||
|
@ -111,13 +111,3 @@ double DEMTree::elevation(const Coordinates &c) const
|
|||||||
|
|
||||||
return ele;
|
return ele;
|
||||||
}
|
}
|
||||||
|
|
||||||
MatrixD DEMTree::elevation(const MatrixC &m) const
|
|
||||||
{
|
|
||||||
MatrixD ret(m.h(), m.w());
|
|
||||||
|
|
||||||
for (int i = 0; i < m.size(); i++)
|
|
||||||
ret.at(i) = elevation(m.at(i));
|
|
||||||
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
@ -2,7 +2,6 @@
|
|||||||
#define IMG_DEMTREE_H
|
#define IMG_DEMTREE_H
|
||||||
|
|
||||||
#include "common/rtree.h"
|
#include "common/rtree.h"
|
||||||
#include "map/matrix.h"
|
|
||||||
#include "mapdata.h"
|
#include "mapdata.h"
|
||||||
|
|
||||||
namespace IMG {
|
namespace IMG {
|
||||||
@ -12,7 +11,6 @@ public:
|
|||||||
DEMTree(const QList<MapData::Elevation> &tiles);
|
DEMTree(const QList<MapData::Elevation> &tiles);
|
||||||
|
|
||||||
double elevation(const Coordinates &c) const;
|
double elevation(const Coordinates &c) const;
|
||||||
MatrixD elevation(const MatrixC &m) const;
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
typedef RTree<const MapData::Elevation*, double, 2> Tree;
|
typedef RTree<const MapData::Elevation*, double, 2> Tree;
|
||||||
|
@ -483,18 +483,22 @@ MatrixD RasterTile::elevation(int extend) const
|
|||||||
|
|
||||||
if (_data->hasDEM()) {
|
if (_data->hasDEM()) {
|
||||||
RectC rect;
|
RectC rect;
|
||||||
|
QList<MapData::Elevation> tiles;
|
||||||
|
|
||||||
for (int i = 0; i < ll.size(); i++)
|
for (int i = 0; i < ll.size(); i++)
|
||||||
rect = rect.united(ll.at(i));
|
rect = rect.united(ll.at(i));
|
||||||
/* Extra margin for always including the next DEM tile on the map tile
|
// Extra margin for always including the next DEM tile on the map tile
|
||||||
edges (the DEM tile resolution is usally 0.5-15% of the map tile) */
|
// edges (the DEM tile resolution is usally 0.5-15% of the map tile)
|
||||||
double factor = 6 - (_zoom - 24) * 1.7;
|
double factor = 6 - (_zoom - 24) * 1.7;
|
||||||
RectC br(rect.adjusted(0, 0, rect.width() / factor, -rect.height()
|
_data->elevations(_file, rect.adjusted(0, 0, rect.width() / factor,
|
||||||
/ factor));
|
-rect.height() / factor), _zoom, &tiles);
|
||||||
|
|
||||||
QList<MapData::Elevation> tiles;
|
DEMTree tree(tiles);
|
||||||
_data->elevations(_file, br, _zoom, &tiles);
|
MatrixD m(ll.h(), ll.w());
|
||||||
|
for (int i = 0; i < ll.size(); i++)
|
||||||
|
m.at(i) = tree.elevation(ll.at(i));
|
||||||
|
|
||||||
return DEMTree(tiles).elevation(ll);
|
return m;
|
||||||
} else
|
} else
|
||||||
return DEM::elevation(ll);
|
return DEM::elevation(ll);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user