From 7ffa6c549efcf2c85d56b4402110e5846a724f5f Mon Sep 17 00:00:00 2001 From: Guilhem Moulin Date: Wed, 23 Jul 2025 09:56:59 +0200 Subject: Add logic to export raster files (as COG). Raster data is not stored in the PostGIS database. Instead, the mtime of the target directory is used to determine whether the COG is up to date. Add a new flag --metadata-compress for JSON metadata compression (which also applies to MVT metadata), and --rasterdir for the target raster directory. --- common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'common.py') diff --git a/common.py b/common.py index 74cd748..cbdc43c 100644 --- a/common.py +++ b/common.py @@ -115,7 +115,7 @@ def parse_config(path : Optional[Path] = None, for name, layerdefs in layers.items(): if isinstance(layerdefs, dict) and 'sources' not in layerdefs: layers[name] = { 'sources': [layerdefs] } - for k in ('description', 'create', 'publish'): + for k in ('description', 'create', 'publish', 'type'): if k in layerdefs: layers[name][k] = layerdefs.pop(k) layerdefs = layers[name] -- cgit v1.2.3