Skip to content

Commit

Permalink
Added the manually the suggested code of #282
Browse files Browse the repository at this point in the history
  • Loading branch information
cvvergara committed Jul 17, 2015
1 parent 92246c8 commit 0a769f8
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions src/common/sql/pgrouting_node_network.sql
Original file line number Diff line number Diff line change
Expand Up @@ -183,11 +183,15 @@ BEGIN
-- drop table if exists inter_loc;

--HAD TO CHANGE THIS QUERY
p_ret= 'create temp table inter_loc on commit drop as ( select * from (
(select l1id, l2id, ' || vst_line_locate_point || '(line,source) as locus from intergeom)
union
(select l1id, l2id, ' || vst_line_locate_point || '(line,target) as locus from intergeom)) as foo
where locus<>0 and locus<>1)';
p_ret= 'create temp table inter_loc on commit drop as (
select l1id, l2id, ' || vst_line_locate_point || '(line,point) as locus from (
select DISTINCT l1id, l2id, line, (ST_DumpPoints(geom)).geom as point from intergeom) as foo
where ' || vst_line_locate_point || '(line,point)<>0 and ' || vst_line_locate_point || '(line,point)<>1)';
-- p_ret= 'create temp table inter_loc on commit drop as ( select * from (
-- (select l1id, l2id, ' || vst_line_locate_point || '(line,source) as locus from intergeom)
-- union
-- (select l1id, l2id, ' || vst_line_locate_point || '(line,target) as locus from intergeom)) as foo
-- where locus<>0 and locus<>1)';
raise debug '%',p_ret;
EXECUTE p_ret;

Expand Down

0 comments on commit 0a769f8

Please sign in to comment.