We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pgr_nodeNetwork has many open issues:
pgr_nodeNetwork
What I can see:
edges_noded
edges
the_geom
format
OK
FAIL
rows_where
Never the less it is a useful function when there are problematic segments in the graph.
The deprecation should be done in steps as follows:
New utility functions:
pgr_separateCrossing(edges SQL, tolerance, dryrun)
pgr_separateTouching(edges SQL, tolerance, dryrun)
Example execution (using the Sample Data of the documentation): pgr_separateCrossing
pgr_separateCrossing
SELECT seq, id, sub_id, ST_AsText(geom) FROM pgr_separateCrossing('SELECT id, geom FROM edges'); seq | id | sub_id | st_astext -----+----+--------+--------------------------- 1 | 13 | 1 | LINESTRING(3 3,3.5 3) 2 | 13 | 2 | LINESTRING(3.5 3,4 3) 3 | 18 | 1 | LINESTRING(3.5 2.3,3.5 3) 4 | 18 | 2 | LINESTRING(3.5 3,3.5 4) (4 rows)
pgr_separateTouching
SELECT seq, id, sub_id, ST_AsText(geom) FROM pgr_separateTouching('SELECT id, geom FROM edges'); seq | id | sub_id | st_astext -----+----+--------+------------------------------------ 1 | 14 | 1 | LINESTRING(2 3,1.999999999999 3.5) 2 | 14 | 2 | LINESTRING(1.999999999999 3.5,2 4) (2 rows)
Assuming the edges table already has:
old_id
The user, for example can add the new segments to the edges table.
INSERT INTO edges (old_id, geom) SELECT id, geom FROM pgr_separateCrossing('SELECT id, geom FROM edges');
The rest, like updating the new segments 's costs, source, and target columns, tags, etc will depend on the application requirements.
Rewrite pgr_nodeNetwork
Deprecate pgr_nodeNetwork on v3.8.0
On v4.0.0 remove the pgr_nodeNetwork code
The text was updated successfully, but these errors were encountered:
robe2
cvvergara
Successfully merging a pull request may close this issue.
pgr_nodeNetwork
has many open issues:What I can see:
edges_noded
edges
tableedges_noded
the_geom
columnformat
functionOK
orFAIL
text messagerows_where
parameterNever the less it is a useful function when there are problematic segments in the graph.
The deprecation should be done in steps as follows:
Step 1
New utility functions:
pgr_separateCrossing(edges SQL, tolerance, dryrun)
- Breaks the edges that cross each otherpgr_separateTouching(edges SQL, tolerance, dryrun)
- breaks the edges that touch each other or the dead end is very close to an edgeExample execution (using the Sample Data of the documentation):
pgr_separateCrossing
pgr_separateTouching
Assuming the
edges
table already has:old_id
The user, for example can add the new segments to the
edges
table.The rest, like updating the new segments 's costs, source, and target columns, tags, etc will depend on the application requirements.
Step 2
Rewrite
pgr_nodeNetwork
edges
and/oredges_noded
edges_noded
when the table existspgr_separateCrossing
andpgr_separateTouching
internallyStep 3
Deprecate
pgr_nodeNetwork
on v3.8.0pgr_separateCrossing
andpgr_separateTouching
Step 4
On v4.0.0 remove the
pgr_nodeNetwork
codeThe text was updated successfully, but these errors were encountered: