Skip to content

Commit efd4ca2

Browse files
committed
Deprecating pgr_createVerticesTable
- Removing use on doc, pgtap and docqueries - (doc) documenting changes on release notes & NEWS
1 parent d96ce47 commit efd4ca2

29 files changed

+616
-487
lines changed

NEWS.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ milestone for 3.8.0
4040
pgr_analyzeOneWay
4141
* [#2753](https://github.com/pgRouting/pgrouting/issues/2753):
4242
pgr_analyzeGraph
43+
* [#2750](https://github.com/pgRouting/pgrouting/issues/2750):
44+
pgr_createTopology
4345
* [#2826](https://github.com/pgRouting/pgrouting/issues/2826):
4446
pgr_createVerticesTable
4547

doc/_static/page_history.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ var filesArr = [
220220
]),
221221
new createInfo('pgr_createTopology', '2.0', [
222222
{ v: '2.1', n: 'src/common/doc/functions/create_topology'},
223-
{ v: '2.3', n: 'src/topology/doc/pgr_createTopology'},
223+
{ v: '2.3', n: 'src/topology/doc/pgr_createTopology'}, 3.8
224224
]),
225225
new createInfo('pgr_analyzeOneWay', '2.0', [
226226
{ v: '2.1', n: 'src/common/doc/functions/analyze_oneway'},

doc/src/migration.rst

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,25 @@ Results can be different because of the changes.
2424
.. contents:: Contents
2525
:depth: 2
2626

27+
.. migrate_pgr_createTopology_start
28+
29+
Migration of ``pgr_createTopology``
30+
-------------------------------------------------------------------------------
31+
32+
Starting from `v3.8.0 <https://docs.pgrouting.org/3.8/en/migration.html>`__
33+
34+
**Before Deprecation:** The following was calculated:
35+
36+
* A table with `<edges>_vertices_pgr` was created.
37+
38+
**After Deprecation:** The user is responsible to create the complete topology.
39+
40+
.. include:: pgRouting-concepts.rst
41+
:start-after: createTopology_start
42+
:end-before: createTopology_end
43+
44+
.. migrate_pgr_createTopology_end
45+
2746
.. migrate_pgr_createVerticesTable_start
2847
2948
Migration of ``pgr_createVerticesTable``

doc/src/pgRouting-concepts.rst

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -489,6 +489,7 @@ The use of indexes on the database design in general:
489489
Please consult the `PostgreSQL <https://www.postgresql.org/docs/>`__
490490
documentation and the `PostGIS <https://postgis.net/>`__ documentation.
491491

492+
.. createTopology_start
492493
493494
Build a routing topology
494495
...............................................................................
@@ -516,10 +517,18 @@ If the columns do not exist they need to be added to the table in question. (see
516517
The function :doc:`pgr_extractVertices` is used to create a vertices table
517518
based on the edge identifier and the geometry of the edge of the graph.
518519

520+
.. literalinclude:: concepts.queries
521+
:start-after: -- createTopology1
522+
:end-before: -- createTopology2
523+
519524
Finally using the data stored on the vertices tables the ``source`` and
520525
``target`` are filled up.
521526

522-
See :doc:`sampledata` for an example for building a topology.
527+
.. literalinclude:: concepts.queries
528+
:start-after: -- createTopology2
529+
:end-before: -- createTopology3
530+
531+
.. createTopology_end
523532
524533
Data coming from OSM and using `osm2pgrouting
525534
<https://github.com/pgRouting/osm2pgrouting>`__ as an import tool, comes with

doc/src/release_notes.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,8 @@ milestone for 3.8.0
7272
pgr_analyzeOneWay
7373
* `#2753 <https://github.com/pgRouting/pgrouting/issues/2753>`__:
7474
pgr_analyzeGraph
75+
* `#2750 <https://github.com/pgRouting/pgrouting/issues/2750>`__:
76+
pgr_createTopology
7577
* `#2826 <https://github.com/pgRouting/pgrouting/issues/2826>`__:
7678
pgr_createVerticesTable
7779

doc/topology/pgr_analyzeGraph.rst

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,6 @@ The edge table to be analyzed must contain a source column and a target column
5555
filled with id's of the vertices of the segments and the corresponding vertices
5656
table <edge_table>_vertices_pgr that stores the vertices information.
5757

58-
- Use :doc:`pgr_createTopology` to create the topology and the vertices table.
59-
6058
Parameters
6159
-------------------------------------------------------------------------------
6260

@@ -95,9 +93,6 @@ The function returns:
9593

9694
.. rubric:: The Vertices Table
9795

98-
The vertices table can be created with
99-
:doc:`pgr_createTopology <pgr_createTopology>`
100-
10196
The structure of the vertices table is:
10297

10398
:id: ``bigint`` Identifier of the vertex.

doc/topology/pgr_analyzeOneWay.rst

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,6 @@ The edge table to be analyzed must contain a source column and a target column
6464
filled with id's of the vertices of the segments and the corresponding vertices
6565
table <edge_table>_vertices_pgr that stores the vertices information.
6666

67-
- Use :doc:`pgr_createTopology` to create the topology and the vertices table.
68-
6967
|Boost| Boost Graph Inside
7068

7169
Signatures
@@ -96,10 +94,6 @@ Parameters
9694
:two_way_if_null: ``boolean`` flag to treat oneway NULL values as
9795
bi-directional. Default value is ``true``.
9896

99-
.. note::
100-
It is strongly recommended to use the named notation. See
101-
:doc:`pgr_createTopology` for examples.
102-
10397
The function returns:
10498

10599
- ``OK`` after the analysis has finished.
@@ -120,9 +114,6 @@ condition.
120114

121115
.. rubric:: The Vertices Table
122116

123-
The vertices table can be created with
124-
:doc:`pgr_createTopology`
125-
126117
The structure of the vertices table is:
127118

128119
:id: ``bigint`` Identifier of the vertex.

doc/topology/pgr_createTopology.rst

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,24 +8,32 @@
88
****************************************************************************
99

1010
.. index::
11-
single: Topology Family ; pgr_createTopology
12-
single: createTopology
11+
single: Topology Family ; pgr_createTopology - Deprecated since v3.8.0
12+
single: createTopology - Deprecated since v3.8.0
1313

1414
|
1515
16-
``pgr_createTopology``
16+
``pgr_createTopology`` - Deprecated since v3.8.0
1717
===============================================================================
1818

1919
``pgr_createTopology`` — Builds a network topology based on the geometry
2020
information.
2121

2222
.. rubric:: Availability
2323

24+
* Version 3.8.0
25+
26+
* Deprecated function.
27+
2428
* Version 2.0.0
2529

2630
* Official function.
2731
* Renamed from version 1.x
2832

33+
.. include:: migration.rst
34+
:start-after: migrate_pgr_createTopology_start
35+
:end-before: migrate_pgr_createTopology_end
36+
2937
Description
3038
-------------------------------------------------------------------------------
3139

doc/topology/pgr_createVerticesTable.rst

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -286,8 +286,6 @@ See Also
286286
* :doc:`sampledata`
287287
* :doc:`topology-functions` for an overview of a topology for routing
288288
algorithms.
289-
* :doc:`pgr_createTopology` <pgr_create_topology>` to create a topology based on
290-
the geometry.
291289

292290
.. rubric:: Indices and tables
293291

doc/topology/pgr_nodeNetwork.rst

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,8 @@ The output table will have for ``edge_table_noded``
7878
:id: ``bigint`` Unique identifier for the table
7979
:old_id: ``bigint`` Identifier of the edge in original table
8080
:sub_id: ``integer`` Segment number of the original edge
81-
:source: ``integer`` Empty source column to be used with
82-
:doc:`pgr_createTopology` function
83-
:target: ``integer`` Empty target column to be used with
84-
:doc:`pgr_createTopology` function
81+
:source: ``integer`` Empty source column
82+
:target: ``integer`` Empty target column
8583
:the geom: ``geometry`` Geometry column of the noded network
8684

8785
Examples
@@ -234,7 +232,6 @@ See Also
234232
-------------------------------------------------------------------------------
235233

236234
:doc:`topology-functions` for an overview of a topology for routing algorithms.
237-
:doc:`pgr_createTopology` to create a topology based on the geometry.
238235

239236
.. rubric:: Indices and tables
240237

0 commit comments

Comments
 (0)