@@ -30,14 +30,14 @@ The application requirements
3030===============================================================================
3131
3232A front end needs the following routing information:
33- - seq - A unique identifier of the rows
34- - id - The segment's identifier
35- - name - The segment's name
36- - length - The segment's length
37- - seconds - Number of seconds to traverse the segment
38- - azimuth - The azimuth of the segment
39- - route_geom - The routing geometry
40- - route_readable - The geometry in human readable form.
33+ - `` seq `` - A unique identifier of the rows
34+ - `` id `` - The segment's identifier
35+ - `` name `` - The segment's name
36+ - `` length `` - The segment's length
37+ - `` seconds `` - Number of seconds to traverse the segment
38+ - `` azimuth `` - The azimuth of the segment
39+ - `` route_geom `` - The routing geometry
40+ - `` route_readable `` - The geometry in human readable form.
4141
4242.. rubric :: Design of the function
4343
@@ -46,28 +46,28 @@ output columns:
4646
4747.. rubric :: Input parameters
4848
49- ============= ========= =================
50- Name Type Description
51- ============= ========= =================
52- edges_subset REGCLASS The table/view that is going to be used for processing
53- source_osm BIGINT The OSM identifier of the `departure ` location.
54- target_osm BIGINT The OSM identifier of the `destination ` location.
55- ============= ========= =================
49+ ================= ========= =================
50+ Name Type Description
51+ ================= ========= =================
52+ `` edges_subset `` REGCLASS The table/view that is going to be used for processing
53+ `` source_osm `` BIGINT The OSM identifier of the `departure ` location.
54+ `` target_osm `` BIGINT The OSM identifier of the `destination ` location.
55+ ================= ========= =================
5656
5757.. rubric :: output columns
5858
59- =============== ========= =================
60- Name Type Description
61- =============== ========= =================
62- seq INTEGER A unique number for each result row.
63- id BIGINT The edge identifier.
64- name TEXT The name of the segment.
65- seconds FLOAT The number of seconds it takes to traverse the segment.
66- azimuth FLOAT The azimuth of the segment.
67- length FLOAT The leng in meters of the segment.
68- route_readable TEXT The geometry in human readable form.
69- route_geom geometry The geometry of the segment in the correct direction.
70- =============== ========= =================
59+ ================== ========= =================
60+ Name Type Description
61+ ================== ========= =================
62+ `` seq `` INTEGER A unique number for each result row.
63+ `` id `` BIGINT The edge identifier.
64+ `` name `` TEXT The name of the segment.
65+ `` seconds `` FLOAT The number of seconds it takes to traverse the segment.
66+ `` azimuth `` FLOAT The azimuth of the segment.
67+ `` length `` FLOAT The leng in meters of the segment.
68+ `` route_readable `` TEXT The geometry in human readable form.
69+ `` route_geom `` geometry The geometry of the segment in the correct direction.
70+ ================== ========= =================
7171
7272
7373.. note :: For the following exercises only ``vehicle_net`` will be used, but
@@ -122,9 +122,9 @@ Geometry handling
122122===============================================================================
123123
124124From pgRouting point of view, the geometry is part of the additional
125- information, needed on the results for an application. Therefore ``JOIN `` the
126- results with other tables that contain the geometry, but for further processing
127- use PostGIS functions.
125+ information, needed on the results for an application. Therefore ``JOIN `` the
126+ results with other tables that contain the geometry and for further processing
127+ with PostGIS functions.
128128
129129Exercise 2: Route geometry (human readable)
130130-------------------------------------------------------------------------------
@@ -157,7 +157,7 @@ Route from the |ch7_place_1| to |ch7_place_2|
157157* The ``geom `` processed with ``ST_AsText `` to get the human readable form.
158158 (line **12 **)
159159
160- * Renaming the result to ``route_readable ``
160+ * Renaming the result to ``route_readable ``
161161
162162* The ``LEFT JOIN `` with ``vehicle_net ``. (line **14 **)
163163
@@ -246,8 +246,8 @@ Route from the |ch7_place_1| to |ch7_place_2|
246246
247247* Fix the directionality of the geometries of the previous exercise
248248
249- * ``geom `` in human readable form named as ``route_readable ``
250- * ``geom `` in binary format with the name ``route_geom ``
249+ * ``geom `` in human readable form named as ``route_readable ``
250+ * ``geom `` in binary format with the name ``route_geom ``
251251 * Both columns must have the geometry fixed for directionality.
252252
253253.. rubric :: Solution
0 commit comments