-
-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
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
Modifying withpointsdd #346
Merged
squarege
merged 7 commits into
pgRouting:develop-try1
from
squarege:modifying-withpointsdd
Aug 17, 2023
Merged
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
42d1bd0
[withPointsDD][pgtap] tests should pass at end of the development
squarege 630b57a
[withPointsDD][include] Adjusting driver and creating new file
squarege 3921ca8
[withPoints][src] function estimate_drivingSide changed, blank space …
squarege f3ddec2
[withPointsDD][src] Adjusting to get the new results column
squarege 991b863
[withPointsDD][sql] Changing signature and standardizing results
squarege 88d8e7c
[withPointsDD][docqueries] Updating for withPointsDD & migration docs
squarege d0fa296
[withPointsDD][doc] Updating documentations
squarege File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,6 +20,11 @@ Results can be different because of the changes. | |
|
||
Migrating functions: | ||
|
||
:doc:`pgr_withPointsDD` signatures have changed, with the addition of new columns | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please write in alphabetical order |
||
in the new signatures. It works mainly for driving cases, therefore the ``driving side`` | ||
parameter changed from optional to compulsory, and its valid values differ for | ||
directed and undirected graphs. | ||
|
||
:doc:`pgr_maxCardinalityMatch` works only for undirected graphs, therefore the | ||
``directed`` flag has been removed. | ||
|
||
|
@@ -38,6 +43,76 @@ Migration of functions that add new columns | |
.. contents:: Contents | ||
:local: | ||
|
||
Migration of ``pgr_withPointsDD`` | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please also place this in alphabetical order (So it is the last one) |
||
------------------------------------------------------------------------------- | ||
|
||
Starting from `v3.6.0 <https://docs.pgrouting.org/3.6/en/migration.html>`__ | ||
|
||
Signatures to be migrated: | ||
|
||
* ``pgr_withPointsDD`` (`Single vertex`) | ||
* ``pgr_withPointsDD`` (`Multiple vertices`) | ||
|
||
:Before Migration: | ||
|
||
.. literalinclude:: migration.queries | ||
:start-after: --withpointsdd1 | ||
:end-before: --withpointsdd2 | ||
|
||
* ``driving_side`` parameter is optional. | ||
* Output columns were |result-generic-no-seq| | ||
|
||
* Depending on the overload used, the columns ``start_vid`` might be missing: | ||
|
||
* ``pgr_withPointsDD`` (`Single vertex`) does not have ``start_vid`` | ||
|
||
:Migration: | ||
|
||
* ``driving side`` parameter is compulsory, and valid values differ for directed | ||
and undirected graphs. | ||
|
||
* Does not have a default value. | ||
|
||
* In directed graph, valid values are [``r``, ``R``, ``l``, ``L``] | ||
|
||
* In undirected graph, valid values are [``b``, ``B``] | ||
|
||
|
||
* Be aware of the existance of the additional columns. | ||
|
||
* In ``pgr_withPointsDD`` (`Single vertex`) | ||
|
||
* ``start_vid`` contains the **start vid** parameter value. | ||
* ``depth`` contains the **depth** parameter value. | ||
|
||
.. literalinclude:: migration.queries | ||
:start-after: --withpointsdd2 | ||
:end-before: --withpointsdd3 | ||
|
||
* In ``pgr_withPointsDD`` (`Multiple vertices`) | ||
|
||
* ``depth`` contains the **depth** parameter value. | ||
|
||
.. literalinclude:: migration.queries | ||
:start-after: --withpointsdd3 | ||
:end-before: --withpointsdd4 | ||
|
||
* If needed filter out the added columns, for example: | ||
|
||
.. literalinclude:: migration.queries | ||
:start-after: --withpointsdd4 | ||
:end-before: --withpointsdd5 | ||
|
||
* If needed add the new columns, similar to the following example where | ||
``pgr_dijkstra`` is used, and the function had to be modified to be able to | ||
return the new columns: | ||
|
||
* In `v3.0 <https://docs.pgrouting.org/3.0/en/contraction-family.html#case-1-both-source-and-target-belong-to-the-contracted-graph>`__ | ||
the function ``my_dijkstra`` uses ``pgr_dijkstra``. | ||
* Starting from `v3.5 <https://docs.pgrouting.org/3.5/en/contraction-family.html#case-1-both-source-and-target-belong-to-the-contracted-graph>`__ | ||
the function ``my_dijkstra`` returns the new additional columns of | ||
``pgr_dijkstra``. | ||
|
||
Migration of ``pgr_aStar`` | ||
------------------------------------------------------------------------------- | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can not modify this file, It is not pgr_withPointsDD