Skip to content

Commit

Permalink
[server][wmts][refactor] converted variable to const
Browse files Browse the repository at this point in the history
Co-authored-by: Alessandro Pasotti <elpaso@itopen.it>
  • Loading branch information
andreassteffens and elpaso committed May 27, 2021
1 parent 94c2194 commit 63f47db
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/server/services/wmts/qgswmtsutils.cpp
Expand Up @@ -36,7 +36,7 @@ namespace QgsWmts

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

QMap< QString, tileMatrixInfo> fixedTileMatrixInfoMap = populateFixedTileMatrixInfoMap();
QMap< QString, tileMatrixInfo> calculatedTileMatrixInfoMap; // for project without WMTSGrids configuration
Expand Down Expand Up @@ -841,4 +841,3 @@ namespace QgsWmts

} // namespace QgsWmts


0 comments on commit 63f47db

Please sign in to comment.