Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[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 09d2ca8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server/services/wmts/qgswmtsutils.cpp
Expand Up @@ -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
Expand Down

0 comments on commit 09d2ca8

Please sign in to comment.