diff options
-rw-r--r-- | common.py | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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): |