From 42c369e643c61641b5ba20f45263ceeb22b42586 Mon Sep 17 00:00:00 2001 From: mattiagiupponi <51856725+mattiagiupponi@users.noreply.github.com> Date: Fri, 16 Jun 2023 09:39:15 +0200 Subject: [PATCH] rollback functions.sql prod want ST_INTERSECTS while ST_within was a test --- database/functions.sql | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/database/functions.sql b/database/functions.sql index d60fa09..dbfce00 100644 --- a/database/functions.sql +++ b/database/functions.sql @@ -1107,7 +1107,7 @@ BEGIN acq_distretto d, acq_condotta a WHERE d_tipo = ''MIS'' - AND a.geom&&d.geom AND ST_Within(a.geom,d.geom) + AND a.geom&&d.geom AND ST_INTERSECTS(a.geom,d.geom) AND d.d_tipo = ''MIS'' ) t WHERE t.idgis = ' || v_table || '.idgis ); @@ -4803,4 +4803,4 @@ begin END; $$ LANGUAGE plpgsql SECURITY DEFINER - SET search_path = public, DBIAIT_ANALYSIS; \ No newline at end of file + SET search_path = public, DBIAIT_ANALYSIS;