@@ -1291,145 +1291,59 @@ function been migrated then:
12911291* ``id2 `` is the node
12921292* ``id3 `` is the edge
12931293
1294- Migration of `` pgr_trspViaEdges ``
1294+ Migration of pgr_trspViaEdges
12951295-------------------------------------------------------------------------------
12961296
1297- Signature to be migrated:
1298-
1299- .. parsed-literal ::
1300-
1301- pgr_trspViaEdges(sql text, eids integer[], pcts float8[],
1302- directed boolean, has_rcost boolean
1303- [, turn_restrict_sql text]);
1304- RETURNS SETOF (seq, id1, id2, id3, cost)
1305-
1306-
1307- * The integral types of the ``Edges SQL `` can only be ``INTEGER ``.
1308- * The floating point type of the ``Edges SQL `` can only be ``FLOAT ``.
1309- * ``directed `` flag is compulsory.
1310-
1311- * Does not have a default value.
1312-
1313- * Does not autodetect if ``reverse_cost `` column exist.
1314-
1315- * User must be careful to match the existence of the column with the value of
1316- ``has_rcost `` parameter.
1317-
1318- * The restrictions inner query is optional.
1319-
1320- For these migration guide the following points will be used:
1321-
1322- .. literalinclude :: migration.queries
1323- :start-after: --viav7
1324- :end-before: --edgesvia1
1325-
1326- And will travel thru the following Via points :math: `4 \rightarrow3 \rightarrow6 `
1327-
1328- Migrate by using:
1329-
1330- * :doc: `pgr_withPointsVia ` when there are no restrictions,
1331- * :doc: `pgr_trspVia_withPoints ` when there are restrictions.
1297+ .. contents ::
1298+ :local:
1299+ :depth: 1
13321300
1333- Migrating ``pgr_trspViaEdges `` using ``pgr_withPointsVia ``
1334- ...............................................................................
1335-
1336- The following query does not have restrictions.
1301+ In this section this set of points is going to be used:
13371302
13381303.. literalinclude :: migration.queries
13391304 :start-after: --edgesvia1
13401305 :end-before: --edgesvia2
13411306
1342- * A message about deprecation is shown
1343-
1344- * Deprecated functions will be removed on the next mayor version 4.0.0
1307+ Migrating pgr_trspViaEdges using pgr_withPointsVia
1308+ ...............................................................................
13451309
1346- Use :doc: `pgr_withPointsVia ` instead .
1310+ Using :doc: `pgr_withPointsVia `.
13471311
13481312.. literalinclude :: migration.queries
13491313 :start-after: --edgesvia2
13501314 :end-before: --edgesvia3
13511315
1352- * The types casting has been removed.
1353- * Do not show details, as the deprecated function does not show details.
1354- * :doc: `pgr_withPointsVia `:
1355-
1356- * Autodetects if ``reverse_cost `` column is in the edges
1357- SQL.
1358- * Accepts ``ANY-INTEGER `` on integral types
1359- * Accepts ``ANY-NUMERICAL `` on floating point types
1360- * ``directed `` flag has a default value of ``true ``.
1361-
1362- * Use the same value that on the original query.
1363- * In this example it is ``true `` which is the default value.
1364-
1365- * The flag has been omitted and the default is been used.
1366- * On the points query do not include the ``side `` column.
1367-
1368- When the need of using strictly the same (meaningless) names and types, and node
1369- values of the function been migrated then:
1370-
1371- .. literalinclude :: migration.queries
1372- :start-after: --edgesvia3
1373- :end-before: --edgesvia4
1316+ When the need of using the same (meaningless) names and and strict types then
1317+ convert the result to the deprecated function columns:
13741318
13751319* ``id1 `` is the path identifier
13761320* ``id2 `` is the node
13771321* ``id3 `` is the edge
13781322
1379- Migrating ``pgr_trspViaEdges `` using ``pgr_trspVia_withPoints ``
1380- ...............................................................................
1381-
1382- The following query has restrictions.
1383-
13841323.. literalinclude :: migration.queries
1385- :start-after: --edgesvia4
1386- :end-before: --edgesvia5
1387-
1388- * A message about deprecation is shown
1389-
1390- * Deprecated functions will be removed on the next mayor version 4.0.0
1391-
1392- * The restrictions are the last parameter of the function
1324+ :start-after: --edgesvia3
1325+ :end-before: --edgesvia4
13931326
1394- * Using the old structure of restrictions
1327+ Migrating pgr_trspViaEdges using pgr_trspVia_withPoints
1328+ ...............................................................................
13951329
13961330Use :doc: `pgr_trspVia_withPoints ` instead.
13971331
13981332.. literalinclude :: migration.queries
13991333 :start-after: --edgesvia5
14001334 :end-before: --edgesvia6
14011335
1402- * The new structure of restrictions is been used.
1403-
1404- * It is the second parameter.
1336+ When the need of using the same (meaningless) names and and strict types then
1337+ convert the result to the deprecated function columns:
14051338
1406- * The types casting has been removed.
1407- * Do not show details, as the deprecated function does not show details.
1408- * :doc: `pgr_trspVia_withPoints `:
1409-
1410- * Autodetects if ``reverse_cost `` column is in the edges
1411- SQL.
1412- * Accepts ``ANY-INTEGER `` on integral types
1413- * Accepts ``ANY-NUMERICAL `` on floating point types
1414- * ``directed `` flag has a default value of ``true ``.
1415-
1416- * Use the same value that on the original query.
1417- * In this example it is ``true `` which is the default value.
1418-
1419- * The flag has been omitted and the default is been used.
1420- * On the points query do not include the ``side `` column.
1421-
1422- When the need of using strictly the same (meaningless) names and types, and node
1423- values of the function been migrated then:
1339+ * ``id1 `` is the path identifier
1340+ * ``id2 `` is the node
1341+ * ``id3 `` is the edge
14241342
14251343.. literalinclude :: migration.queries
14261344 :start-after: --edgesvia6
14271345 :end-before: --edgesvia7
14281346
1429- * ``id1 `` is the path identifier
1430- * ``id2 `` is the node
1431- * ``id3 `` is the edge
1432-
14331347
14341348See Also
14351349-------------------------------------------------------------------------------
0 commit comments