mirror of
https://github.com/tumic0/GPXSee.git
synced 2025-02-20 17:50:49 +01:00
Compare commits
No commits in common. "c4d07b5f126dc91673e7366424134826a5f51418" and "947d2d62b377939d81a786a7c5ade43602303043" have entirely different histories.
c4d07b5f12
...
947d2d62b3
@ -41,4 +41,4 @@ private:
|
||||
|
||||
}
|
||||
|
||||
#endif // IMG_DEM_H
|
||||
#endif // IMG_ELEVATIONTREE_H
|
||||
|
@ -30,6 +30,7 @@ using namespace IMG;
|
||||
#define WATER 1
|
||||
|
||||
#define BLUR_RADIUS 3
|
||||
#define DELTA 0.05 /* DEM3 resolution in degrees */
|
||||
|
||||
static const QColor textColor(Qt::black);
|
||||
static const QColor haloColor(Qt::white);
|
||||
@ -476,11 +477,9 @@ MatrixD RasterTile::elevation(int extend) const
|
||||
|
||||
for (int i = 0; i < ll.size(); i++)
|
||||
rect = rect.united(ll.at(i));
|
||||
// Extra margin for always including the next DEM tile on the map tile
|
||||
// edges (the DEM tile resolution is usally < 5% of the map tile)
|
||||
double delta = rect.width() / 16;
|
||||
rect = rect.united(Coordinates(rect.right() + delta,
|
||||
rect.bottom() - delta));
|
||||
// Extra margin for edge()
|
||||
rect = rect.united(Coordinates(rect.right() + DELTA,
|
||||
rect.bottom() - DELTA));
|
||||
|
||||
_data->elevations(rect, _zoom, &tiles);
|
||||
|
||||
|
@ -276,10 +276,7 @@ void VectorTile::elevations(const RectC &rect, const Zoom &zoom,
|
||||
}
|
||||
}
|
||||
|
||||
// Shift the DEM level to get better data then what the map defines for
|
||||
// the given zoom (we prefer rendering quality rather than speed). For
|
||||
// maps with a single level this has no effect.
|
||||
int level = _dem->level(zoom) / 2;
|
||||
int level = _dem->level(zoom);
|
||||
QList<const DEMTile*> tiles(_dem->tiles(rect, level));
|
||||
for (int i = 0; i < tiles.size(); i++) {
|
||||
const DEMTile *tile = tiles.at(i);
|
||||
|
@ -8,7 +8,7 @@ class HillShading
|
||||
{
|
||||
public:
|
||||
static QImage render(const MatrixD &m, int extend, quint8 alpha = 96,
|
||||
double z = 0.6, double azimuth = 315, double elevation = 45);
|
||||
double z = 0.3, double azimuth = 315, double elevation = 25);
|
||||
};
|
||||
|
||||
#endif // HILLSHADING_H
|
||||
|
Loading…
x
Reference in New Issue
Block a user