From 93790e9f0df808f46108a252d66218e29ea6aad5 Mon Sep 17 00:00:00 2001 From: antoniocarlon Date: Wed, 9 May 2018 10:16:03 +0200 Subject: [PATCH] Fixed MVT data --- src/pg/sql/45_observatory_mvt.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pg/sql/45_observatory_mvt.sql b/src/pg/sql/45_observatory_mvt.sql index 881de4d..bead56d 100644 --- a/src/pg/sql/45_observatory_mvt.sql +++ b/src/pg/sql/45_observatory_mvt.sql @@ -181,7 +181,7 @@ BEGIN _json_clause AS (SELECT 'SELECT ST_AsMVT(q, ''data'', $2) FROM (' || 'SELECT ' || cdb_observatory.FIRST(cte_name) || '.mvtgeom geom,' - || (SELECT String_Agg('val_' || colid || '->>''value'' as val_' || colid, ', ') FROM _meta) || ', + || (SELECT String_Agg('val_' || colid || '->>''value'' as val_' || colid, ', ') FROM _meta) || ' FROM ' || String_Agg(cte_name, ', ') || Coalesce(' WHERE ' || val_joins, ') q') AS json_clause