Skip to content

Commit 4e1c09f

Browse files
committed
Renaming functions
1 parent 71b68e3 commit 4e1c09f

File tree

2 files changed

+16
-16
lines changed

2 files changed

+16
-16
lines changed

db/deploy/routing_functions.sql

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ COMMENT ON PROCEDURE {schema_name}.pgrouting_version_check IS 'Ensures appropria
2828

2929

3030

31-
CREATE OR REPLACE PROCEDURE {schema_name}.routing_prepare_edges()
31+
CREATE OR REPLACE PROCEDURE {schema_name}.routing_prepare_edge_network()
3232
LANGUAGE plpgsql
3333
AS $$
3434
BEGIN
@@ -211,26 +211,26 @@ BEGIN
211211
-- Outputs: `route_edges_output` temp table.
212212
END $$;
213213

214-
COMMENT ON PROCEDURE {schema_name}.routing_prepare_edges() IS 'Requires `route_edge_input` temp table as input, creates `route_edges_output` temp table as output.';
214+
COMMENT ON PROCEDURE {schema_name}.routing_prepare_edge_network() IS 'Requires `route_edge_input` temp table as input, creates `route_edges_output` temp table as output.';
215215

216216

217217

218-
CREATE OR REPLACE PROCEDURE {schema_name}.routing_prepare_roads()
218+
CREATE OR REPLACE PROCEDURE {schema_name}.routing_prepare_road_network()
219219
LANGUAGE plpgsql
220220
AS $$
221221
BEGIN
222222

223223
CALL {schema_name}.pgrouting_version_check();
224224

225-
--Create edges table for input to routing_prepare_edges procedure
225+
--Create edges table for input to routing_prepare_edge_network procedure
226226
DROP TABLE IF EXISTS route_edge_input;
227227
CREATE TEMP TABLE route_edge_input AS
228228
SELECT osm_id, layer, geom
229229
FROM {schema_name}.road_line
230230
;
231231

232232
-- Creates the `route_edges_output` table.
233-
CALL {schema_name}.routing_prepare_edges();
233+
CALL {schema_name}.routing_prepare_edge_network();
234234

235235

236236
DROP TABLE IF EXISTS {schema_name}.routing_road_edge;
@@ -368,7 +368,7 @@ BEGIN
368368
END $$;
369369

370370

371-
COMMENT ON PROCEDURE {schema_name}.routing_prepare_roads IS 'Creates the {schema_name}.routing_road_edge and {schema_name}.routing_road_vertex from the {schema_name}.road_line input data';
371+
COMMENT ON PROCEDURE {schema_name}.routing_prepare_road_network IS 'Creates the {schema_name}.routing_road_edge and {schema_name}.routing_road_vertex from the {schema_name}.road_line input data';
372372

373373

374374

@@ -377,22 +377,22 @@ COMMENT ON PROCEDURE {schema_name}.routing_prepare_roads IS 'Creates the {schema
377377
--------------------------------------------------
378378

379379

380-
CREATE OR REPLACE PROCEDURE {schema_name}.routing_prepare_water()
380+
CREATE OR REPLACE PROCEDURE {schema_name}.routing_prepare_water_network()
381381
LANGUAGE plpgsql
382382
AS $$
383383
BEGIN
384384

385385
CALL {schema_name}.pgrouting_version_check();
386386

387-
--Create edges table for input to routing_prepare_edges procedure
387+
--Create edges table for input to routing_prepare_edge_network procedure
388388
DROP TABLE IF EXISTS route_edge_input;
389389
CREATE TEMP TABLE route_edge_input AS
390390
SELECT osm_id, layer, geom
391391
FROM {schema_name}.water_line
392392
;
393393

394394
-- Creates the `route_edges_output` table.
395-
CALL {schema_name}.routing_prepare_edges();
395+
CALL {schema_name}.routing_prepare_edge_network();
396396

397397

398398
DROP TABLE IF EXISTS {schema_name}.routing_water_edge;
@@ -508,4 +508,4 @@ BEGIN
508508
END $$;
509509

510510

511-
COMMENT ON PROCEDURE {schema_name}.routing_prepare_water IS 'Creates the {schema_name}.routing_water_edge and {schema_name}.routing_water_vertex from the {schema_name}.water_line input data';
511+
COMMENT ON PROCEDURE {schema_name}.routing_prepare_water_network IS 'Creates the {schema_name}.routing_water_edge and {schema_name}.routing_water_vertex from the {schema_name}.water_line input data';

docs/src/routing-4.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,22 +11,22 @@ CREATE EXTENSION IF NOT EXISTS pgrouting;
1111

1212
# Process the OpenStreetMap Roads
1313

14-
For routing on `osm.road_line` data use the `osm.routing_prepare_roads`
14+
For routing on `osm.road_line` data use the `osm.routing_prepare_road_network`
1515
procedure to prepare the edge and vertex data used for routing.
1616

1717
```sql
18-
CALL osm.routing_prepare_roads();
18+
CALL osm.routing_prepare_road_network();
1919
```
2020

21-
The `osm.routing_prepare_roads` procedure focuses on the most common use
21+
The `osm.routing_prepare_road_network` procedure focuses on the most common use
2222
cases of routing with the `osm.road_line` layer. It generates the edge/vertex
2323
network for all data in the `osm.road_line` table. It generates accurate `cost_length`
2424
by casting data to `GEOGRAPHY` and generates `cost_length_forward`
2525
and `cost_length_reverse` to natively support directionally-enforced routing
2626
without additional steps.
2727

2828

29-
> ⚠️ The `osm.routing_prepare_roads` procedure was added in PgOSM Flex 1.1.2
29+
> ⚠️ The `osm.routing_prepare_road_network` procedure was added in PgOSM Flex 1.1.2
3030
> and is a significant deviation in routing preparation along with pgRouting 4.0.
3131
> This procedure should be treated as a new feature with potential bugs lurking.
3232
@@ -88,7 +88,7 @@ This direction data type resolves to `int2` in Postgres. Valid values are:
8888
* `NULL`: It's complicated. See [#172](https://github.com/rustprooflabs/pgosm-flex/issues/172).
8989

9090
> Forward and reverse cost columns are calculated in the `cost_length_forward`
91-
> and `cost_length_reverse` columns within the `osm.routing_prepare_roads()` procedure.
91+
> and `cost_length_reverse` columns within the `osm.routing_prepare_road_network()` procedure.
9292
9393

9494
## Travel Time Costs
@@ -297,7 +297,7 @@ PgOSM Flex also includes a procedure to prepare a routing network using
297297
the `osm.water_line` table.
298298

299299
```sql
300-
CALL osm.routing_prepare_water();
300+
CALL osm.routing_prepare_water_network();
301301
```
302302

303303
Find the `vertex_id` for start and end nodes, similar to approach above

0 commit comments

Comments
 (0)