From b6a320d89eef14e6a928e8a34a0496b4c0a197e7 Mon Sep 17 00:00:00 2001 From: mguzman14 Date: Wed, 28 Aug 2024 13:23:50 +0200 Subject: [PATCH] fix(build_nodes): bug fix with previous selection --- utils/fct/gw_fct_setnodefromarc.sql | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/utils/fct/gw_fct_setnodefromarc.sql b/utils/fct/gw_fct_setnodefromarc.sql index 410ca1bf3a..9a749bebd4 100644 --- a/utils/fct/gw_fct_setnodefromarc.sql +++ b/utils/fct/gw_fct_setnodefromarc.sql @@ -103,10 +103,10 @@ BEGIN INSERT INTO audit_check_data (fid, result_id, criticity, error_message) VALUES (116, null, 4, '-------------------------------------------------------------'); -- inserting all extrem nodes on temp_node - INSERT INTO temp_table (fid, text_column, geom_point) - SELECT 116, arc_id, ST_StartPoint(the_geom) AS the_geom FROM v_edit_arc WHERE expl_id=v_expl and (state=1 or state=2) + EXECUTE 'INSERT INTO temp_table (fid, text_column, geom_point) + SELECT 116, arc_id, ST_StartPoint(the_geom) AS the_geom FROM v_edit_arc WHERE expl_id=v_expl and (state=1 or state=2) '||v_querytext||' UNION - SELECT 116, arc_id, ST_EndPoint(the_geom) AS the_geom FROM v_edit_arc WHERE expl_id=v_expl and (state=1 or state=2); + SELECT 116, arc_id, ST_EndPoint(the_geom) AS the_geom FROM v_edit_arc WHERE expl_id=v_expl and (state=1 or state=2) '||v_querytext||''; -- inserting into node table