aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--common.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/common.py b/common.py
index b46840f..67ab208 100644
--- a/common.py
+++ b/common.py
@@ -135,6 +135,14 @@ def load_config(path=None, groupnames=None):
layers = { name: layers[name] for name in layernames }
config['layers'] = layers
+
+ extent = config.get('extent', None)
+ if extent is not None:
+ if isinstance(extent, list):
+ config['extent'] = tuple(extent)
+ if config.get('SRS', None) is None:
+ raise Exception('Configured extent without SRS')
+
sys.modules[__name__].config = config
def format_bytes(n):