Skip to content
Permalink
Browse files
[server][wmts][fix] updated constant to correct resolution in WMTS ti…
…le grid initialization

Constant needed to be updated in order to match the standard rendering pixel size of 0.28mm x 0.28mm defined by the OGC resulting in DPI of 90.71428571429.
  • Loading branch information
andreassteffens committed May 27, 2021
1 parent 005a0ad commit 09d2ca8e4f14583a64bd26b9ab05b930ba318fad
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/server/services/wmts/qgswmtsutils.cpp
@@ -36,7 +36,7 @@ namespace QgsWmts

// Constant
int tileSize = 256;
double POINTS_TO_M = 2.83464567 / 10000.0;
double POINTS_TO_M = 2.800005600011068 / 10000.0;

QMap< QString, tileMatrixInfo> fixedTileMatrixInfoMap = populateFixedTileMatrixInfoMap();
QMap< QString, tileMatrixInfo> calculatedTileMatrixInfoMap; // for project without WMTSGrids configuration

0 comments on commit 09d2ca8

Please sign in to comment.