Skip to content

Commit

Permalink
fix core_area_synthese reference
Browse files Browse the repository at this point in the history
  • Loading branch information
submarcos committed Dec 20, 2024
1 parent 7f84d26 commit aa2f5ef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions data/atlas/11.vm_cor_area_synthese.sql
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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)
)
Expand Down

0 comments on commit aa2f5ef

Please sign in to comment.