1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-11-28 05:34:47 +01:00

Use 72dpi in the ScaleHint to scaleDenominator transformation

This commit is contained in:
Martin Tůma 2020-02-29 20:11:49 +01:00
parent 9dd4e117f6
commit a898ff2807

View File

@ -10,7 +10,10 @@
static inline double hint2denominator(double h)
{
return sqrt((h * h) / 2.0) / 0.28e-3;
/* Some WMS 1.1.1 servers use a 72dpi resolution by default. Using the usual
90dpi (0.28mm) resolution known from later standards (WMS 1.3, WMTS) does
make them return emty images in the "max" scale level. */
return h / (M_SQRT2 * 0.36e-3);
}
WMS::CTX::CTX(const Setup &setup) : setup(setup), formatSupported(false)