Skip to content

Commit

Permalink
fix(build_nodes): bug fix with previous selection
Browse files Browse the repository at this point in the history
  • Loading branch information
mguzman14 committed Aug 28, 2024
1 parent 71827f3 commit b6a320d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions utils/fct/gw_fct_setnodefromarc.sql
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b6a320d

Please sign in to comment.