Skip to content

Commit

Permalink
skip incompatible layers/grids in WMTS service
Browse files Browse the repository at this point in the history
  • Loading branch information
olt committed Jun 7, 2012
1 parent eabb118 commit fcc775f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions mapproxy/service/wmts.py
Expand Up @@ -47,6 +47,10 @@ def _matrix_sets(self, layers):
layers_grids = {}
for layer in layers.values():
grid = layer.grid
if not grid.supports_access_with_origin('nw'):
log.warn("grid '%s' is not compatible with WMTS, skipping for layer '%s'",
grid.name, layer.name)
continue
if grid.name not in sets:
try:
sets[grid.name] = TileMatrixSet(grid)
Expand Down

0 comments on commit fcc775f

Please sign in to comment.