From aa2f5efa708965526cb40b6bb6f194afad4daad4 Mon Sep 17 00:00:00 2001 From: J-E Castagnede Date: Fri, 20 Dec 2024 10:37:44 +0100 Subject: [PATCH] fix core_area_synthese reference --- data/atlas/11.vm_cor_area_synthese.sql | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/data/atlas/11.vm_cor_area_synthese.sql b/data/atlas/11.vm_cor_area_synthese.sql index 544322144..f37fd4c59 100644 --- a/data/atlas/11.vm_cor_area_synthese.sql +++ b/data/atlas/11.vm_cor_area_synthese.sql @@ -1,5 +1,5 @@ IMPORT FOREIGN SCHEMA gn_synthese - LIMIT TO (gn_synthese.tmp_cor_area_synthse) + LIMIT TO (gn_synthese.cor_area_synthese) FROM SERVER geonaturedbserver INTO synthese; CREATE MATERIALIZED VIEW atlas.vm_cor_area_synthese @@ -14,7 +14,7 @@ SELECT s.id_nomenclature_sensitivity, st_transform(a.geom, 4326) AS geom FROM synthese.synthese s - JOIN synthese.tmp_cor_area_synthse sa ON sa.id_synthese = s.id_synthese + JOIN synthese.cor_area_synthese sa ON sa.id_synthese = s.id_synthese JOIN ref_geo.l_areas a ON sa.id_area = a.id_area JOIN atlas.t_layer_territoire ON st_intersects(a.geom_4326, t_layer_territoire.geom)-- AND NOT ST_Touches(t_layer_territoire.geom, a.geom_4326) )