Skip to content
This repository
Browse code

skip incompatible layers/grids in WMTS service

  • Loading branch information...
commit fcc775f4dc2932f1b0fbf61f42237c687b10b627 1 parent eabb118
Oliver Tonnhofer authored June 07, 2012

Showing 1 changed file with 4 additions and 0 deletions. Show diff stats Hide diff stats

  1. 4  mapproxy/service/wmts.py
4  mapproxy/service/wmts.py
@@ -47,6 +47,10 @@ def _matrix_sets(self, layers):
47 47
         layers_grids = {}
48 48
         for layer in layers.values():
49 49
             grid = layer.grid
  50
+            if not grid.supports_access_with_origin('nw'):
  51
+                log.warn("grid '%s' is not compatible with WMTS, skipping for layer '%s'",
  52
+                    grid.name, layer.name)
  53
+                continue
50 54
             if grid.name not in sets:
51 55
                 try:
52 56
                     sets[grid.name] = TileMatrixSet(grid)

0 notes on commit fcc775f

Please sign in to comment.
Something went wrong with that request. Please try again.