Skip to content

Commit

Permalink
fix tileMatrixLimits bug
Browse files Browse the repository at this point in the history
  • Loading branch information
azarz committed Aug 30, 2023
1 parent 05031af commit 480a1d2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions core/wmts_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,9 @@ def _parseLayer(layer, all_tms, key):
layer_config["wmtsOptions"]["tileMatrixSetLink"] = layer["TileMatrixSetLink"]["TileMatrixSet"]
layer_config["wmtsOptions"]["tileMatrixSetLimits"] = {}

if not isinstance(layer["TileMatrixSetLink"]["TileMatrixSetLimits"]["TileMatrixLimits"], list):
layer["TileMatrixSetLink"]["TileMatrixSetLimits"]["TileMatrixLimits"] = [layer["TileMatrixSetLink"]["TileMatrixSetLimits"]["TileMatrixLimits"]]

for tile_matrix in layer["TileMatrixSetLink"]["TileMatrixSetLimits"]["TileMatrixLimits"]:
tile_matrix_set_limit = {}
tile_matrix_set_limit["minTileRow"] = tile_matrix["MinTileRow"]
Expand Down

0 comments on commit 480a1d2

Please sign in to comment.