A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/pgRouting/pgrouting/issues/280 below:

pgr_nodeNetwork does not correctly split line segments · Issue #280 · pgRouting/pgrouting · GitHub

pgr_nodeNetwork does not cut intersections on intersecting points.
Consider the following simple case of two segments crossing on (5,5) :

create table network (id int, the_geom geometry(linestring) );
insert into network values (1, 'linestring(0 0, 10 10)'::geometry);
insert into network values (2, 'linestring(2 0, 8 10)'::geometry);
select pgr_nodeNetwork('network', 0.001);

The "network_noded" table then contains 4 geometries :
LINESTRING(0 0,1 1) <-- the first segment split on what seems to be the
projection of the starting point of the second segment (?)
LINESTRING(1 1,9 9) <-- split on the projection of the ending point of
the second segment
LINESTRING(9 9,10 10)
LINESTRING(2 0,8 10) <-- the original second segment

It should split the two geometries on (5,5)


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4