|
| 1 | +# SOME DESCRIPTIVE TITLE. |
| 2 | +# Copyright (C) 2010-2024 pgRouting Developers |
| 3 | +# This file is distributed under the same license as the Workshop FOSS4G Belém package. |
| 4 | +# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. |
| 5 | +# |
| 6 | +msgid "" |
| 7 | +msgstr "" |
| 8 | +"Project-Id-Version: Workshop FOSS4G Belém 3.0\n" |
| 9 | +"Report-Msgid-Bugs-To: \n" |
| 10 | +"POT-Creation-Date: 2024-12-16 17:44+0000\n" |
| 11 | +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" |
| 12 | +"Last-Translator: Automatically generated\n" |
| 13 | +"Language-Team: none\n" |
| 14 | +"Language: sv\n" |
| 15 | +"MIME-Version: 1.0\n" |
| 16 | +"Content-Type: text/plain; charset=UTF-8\n" |
| 17 | +"Content-Transfer-Encoding: 8bit\n" |
| 18 | + |
| 19 | +#: ../../build/docs/advanced/chapter-12.rst:11 |
| 20 | +msgid "Create a Network Topology" |
| 21 | +msgstr "" |
| 22 | + |
| 23 | +#: ../../build/docs/advanced/chapter-12.rst:17 |
| 24 | +msgid ":doc:`osm2pgrouting <../appendix/appendix-3>` is a convenient tool, and its focus to work on OpenStreetMap data. There are several cases where :doc:`osm2pgrouting <../appendix/appendix-3>` can't be used. Some network data already comes with a network topology that can be used with pgRouting out-of-the-box. Often network data is stored in Shape file format (``.shp``) and we can use PostGIS' ``shp2pgsql`` converter to import the data into a PostgreSQL database." |
| 25 | +msgstr "" |
| 26 | + |
| 27 | +#: ../../build/docs/advanced/chapter-12.rst:24 |
| 28 | +msgid "But what to do then?" |
| 29 | +msgstr "" |
| 30 | + |
| 31 | +#: ../../build/docs/advanced/chapter-12.rst:26 |
| 32 | +msgid "In this chapter you will learn how to create a basic `Routing Network Topology` from a network data that does not have a routing Topology create the minimum attributes needed the `Routing Network Topology`." |
| 33 | +msgstr "" |
| 34 | + |
| 35 | +#: ../../build/docs/advanced/chapter-12.rst:31 |
| 36 | +msgid "Chapter contents" |
| 37 | +msgstr "" |
| 38 | + |
| 39 | +#: ../../build/docs/advanced/chapter-12.rst:34 |
| 40 | +msgid "Load network data" |
| 41 | +msgstr "" |
| 42 | + |
| 43 | +#: ../../build/docs/advanced/chapter-12.rst:36 |
| 44 | +msgid "At first we will load OpenStreetMap sample data with osm2pgsql." |
| 45 | +msgstr "" |
| 46 | + |
| 47 | +#: ../../build/docs/advanced/chapter-12.rst:49 |
| 48 | +msgid "Let's see which tables have been created:" |
| 49 | +msgstr "" |
| 50 | + |
| 51 | +#: ../../build/docs/advanced/chapter-12.rst:52 |
| 52 | +msgid "Run: ``psql -U user -d osm_data -c \"\\d\"``" |
| 53 | +msgstr "" |
| 54 | + |
| 55 | +#: ../../build/docs/advanced/chapter-12.rst:53 |
| 56 | +msgid "The table containing the road network data has the name ``planet_osm_roads``. It consists of large amount of attributes." |
| 57 | +msgstr "" |
| 58 | + |
| 59 | +#: ../../build/docs/advanced/chapter-12.rst:57 |
| 60 | +msgid "Run: ``psql -U user -d osm_data -c \"\\d planet_osm_roads\"``" |
| 61 | +msgstr "" |
| 62 | + |
| 63 | +#: ../../build/docs/advanced/chapter-12.rst:58 |
| 64 | +msgid "It is common that road network data provides at least the following information:" |
| 65 | +msgstr "" |
| 66 | + |
| 67 | +#: ../../build/docs/advanced/chapter-12.rst:60 |
| 68 | +msgid "Road link ID (gid)" |
| 69 | +msgstr "" |
| 70 | + |
| 71 | +#: ../../build/docs/advanced/chapter-12.rst:61 |
| 72 | +msgid "Road class (class_id)" |
| 73 | +msgstr "" |
| 74 | + |
| 75 | +#: ../../build/docs/advanced/chapter-12.rst:62 |
| 76 | +msgid "Road link length (length)" |
| 77 | +msgstr "" |
| 78 | + |
| 79 | +#: ../../build/docs/advanced/chapter-12.rst:63 |
| 80 | +msgid "Road name (name)" |
| 81 | +msgstr "" |
| 82 | + |
| 83 | +#: ../../build/docs/advanced/chapter-12.rst:64 |
| 84 | +msgid "Road geometry (the_geom)" |
| 85 | +msgstr "" |
| 86 | + |
| 87 | +#: ../../build/docs/advanced/chapter-12.rst:66 |
| 88 | +msgid "This allows to display the road network as a PostGIS layer in GIS software, for example in QGIS. Though it is not sufficient for routing, because it doesn't contain network topology information." |
| 89 | +msgstr "" |
| 90 | + |
| 91 | +#: ../../build/docs/advanced/chapter-12.rst:70 |
| 92 | +msgid "The next steps will use the PostgreSQL command line tool." |
| 93 | +msgstr "" |
| 94 | + |
| 95 | +#: ../../build/docs/advanced/chapter-12.rst:79 |
| 96 | +msgid "Create a Routing Network Topology" |
| 97 | +msgstr "" |
| 98 | + |
| 99 | +#: ../../build/docs/advanced/chapter-12.rst:81 |
| 100 | +msgid "Having your data imported into a PostgreSQL database might require one more step for pgRouting." |
| 101 | +msgstr "" |
| 102 | + |
| 103 | +#: ../../build/docs/advanced/chapter-12.rst:84 |
| 104 | +msgid "Make sure that your data provides a correct `Routing Network Topology`, which consists of information about source and target identifiers for each road link. The results above, show that the network topology does not have any source and target information." |
| 105 | +msgstr "" |
| 106 | + |
| 107 | +#: ../../build/docs/advanced/chapter-12.rst:89 |
| 108 | +msgid "Creation of the `Routing Network Topology` is necessary." |
| 109 | +msgstr "" |
| 110 | + |
| 111 | +#: ../../build/docs/advanced/chapter-12.rst:92 |
| 112 | +msgid "PostGIS topology is not suitable for Routing." |
| 113 | +msgstr "" |
| 114 | + |
| 115 | +#: ../../build/docs/advanced/chapter-12.rst:94 |
| 116 | +msgid "pgRouting provides a general way for creating the `Routing Network Topology` with the ``pgr_createTopology`` function." |
| 117 | +msgstr "" |
| 118 | + |
| 119 | +#: ../../build/docs/advanced/chapter-12.rst:97 |
| 120 | +msgid "This function:" |
| 121 | +msgstr "" |
| 122 | + |
| 123 | +#: ../../build/docs/advanced/chapter-12.rst:99 |
| 124 | +msgid "Assigns a ``source`` and a ``target`` identifiers to each road link" |
| 125 | +msgstr "" |
| 126 | + |
| 127 | +#: ../../build/docs/advanced/chapter-12.rst:100 |
| 128 | +msgid "It can logically \"snap\" nearby vertices within a certain tolerance by assigning the same identifier." |
| 129 | +msgstr "" |
| 130 | + |
| 131 | +#: ../../build/docs/advanced/chapter-12.rst:102 |
| 132 | +msgid "Creates a vertices table related to it." |
| 133 | +msgstr "" |
| 134 | + |
| 135 | +#: ../../build/docs/advanced/chapter-12.rst:103 |
| 136 | +msgid "Creates the basic indices." |
| 137 | +msgstr "" |
| 138 | + |
| 139 | +#: ../../build/docs/advanced/chapter-12.rst:109 |
| 140 | +msgid "For additional information see `pgr_createTopology <https://docs.pgrouting.org/latest/en/pgr_createTopology.html>`_." |
| 141 | +msgstr "" |
| 142 | + |
| 143 | +#: ../../build/docs/advanced/chapter-12.rst:112 |
| 144 | +msgid "First add source and target column, then run the ``pgr_createTopology`` function ... and wait." |
| 145 | +msgstr "" |
| 146 | + |
| 147 | +#: ../../build/docs/advanced/chapter-12.rst:115 |
| 148 | +msgid "Depending on the network size this process may take from minutes to hours." |
| 149 | +msgstr "" |
| 150 | + |
| 151 | +#: ../../build/docs/advanced/chapter-12.rst:116 |
| 152 | +msgid "Progress indicator can be read with PostgreSQL NOTICE" |
| 153 | +msgstr "" |
| 154 | + |
| 155 | +#: ../../build/docs/advanced/chapter-12.rst:117 |
| 156 | +msgid "It will also require enough memory (RAM or SWAP partition) to store temporary data." |
| 157 | +msgstr "" |
| 158 | + |
| 159 | +#: ../../build/docs/advanced/chapter-12.rst:120 |
| 160 | +msgid "The dimension of the tolerance parameter depends on your data projection. Usually it's either \"degrees\" or \"meters\". In our example the geometry data projection to determine the tolerance:" |
| 161 | +msgstr "" |
| 162 | + |
| 163 | +#: ../../build/docs/advanced/chapter-12.rst:132 |
| 164 | +msgid "Based on this result the tolerance will be 0.00001" |
| 165 | +msgstr "" |
| 166 | + |
| 167 | +#: ../../build/docs/advanced/chapter-12.rst:145 |
| 168 | +msgid "Verify the Routing Network Topology" |
| 169 | +msgstr "" |
| 170 | + |
| 171 | +#: ../../build/docs/advanced/chapter-12.rst:147 |
| 172 | +msgid "To verify that there is a basic `Routing Network Topology`:" |
| 173 | +msgstr "" |
| 174 | + |
| 175 | +#: ../../build/docs/advanced/chapter-12.rst:153 |
| 176 | +msgid "Also a new table containing the vertices information was created:" |
| 177 | +msgstr "" |
| 178 | + |
| 179 | +#: ../../build/docs/advanced/chapter-12.rst:159 |
| 180 | +msgid "``id`` is the vertex identifier" |
| 181 | +msgstr "" |
| 182 | + |
| 183 | +#: ../../build/docs/advanced/chapter-12.rst:160 |
| 184 | +msgid "``the_geom`` is the geometry considered for that particular vertex identifier." |
| 185 | +msgstr "" |
| 186 | + |
| 187 | +#: ../../build/docs/advanced/chapter-12.rst:161 |
| 188 | +msgid "``source`` and ``target`` from the ``planet_osm_roads`` correspond to an ``id`` in ``planet_osm_roads_vertices_pgr`` table" |
| 189 | +msgstr "" |
| 190 | + |
| 191 | +#: ../../build/docs/advanced/chapter-12.rst:163 |
| 192 | +msgid "Additional columns are for analyzing the topology." |
| 193 | +msgstr "" |
| 194 | + |
| 195 | +#: ../../build/docs/advanced/chapter-12.rst:165 |
| 196 | +msgid "Now we are ready for our first routing query with `pgr_dijkstra <https://docs.pgrouting.org/latest/en/pgr_dijkstra.html>`__ or any other pgRouting query." |
| 197 | +msgstr "" |
| 198 | + |
| 199 | +#: ../../build/docs/advanced/chapter-12.rst:172 |
| 200 | +msgid "Analyze and Adjust the Routing Network Topology" |
| 201 | +msgstr "" |
| 202 | + |
| 203 | +#: ../../build/docs/advanced/chapter-12.rst:174 |
| 204 | +msgid "Analyzing the topology with `pgr_analyzeGraph <https://docs.pgrouting.org/latest/en/pgr_analyzeGraph.html>`_:" |
| 205 | +msgstr "" |
| 206 | + |
| 207 | +#: ../../build/docs/advanced/chapter-12.rst:181 |
| 208 | +msgid "Adjusting the topology is not an easy task:" |
| 209 | +msgstr "" |
| 210 | + |
| 211 | +#: ../../build/docs/advanced/chapter-12.rst:183 |
| 212 | +msgid "Is an isolated segment an error in the data?" |
| 213 | +msgstr "" |
| 214 | + |
| 215 | +#: ../../build/docs/advanced/chapter-12.rst:184 |
| 216 | +msgid "Is an isolated segment because its on the edge of the bounding box?" |
| 217 | +msgstr "" |
| 218 | + |
| 219 | +#: ../../build/docs/advanced/chapter-12.rst:185 |
| 220 | +msgid "Do the potential gaps found near dead ends because the tolerance was too small?" |
| 221 | +msgstr "" |
| 222 | + |
| 223 | +#: ../../build/docs/advanced/chapter-12.rst:187 |
| 224 | +msgid "Are the intersections real intersections and need to be nodded?" |
| 225 | +msgstr "" |
| 226 | + |
| 227 | +#: ../../build/docs/advanced/chapter-12.rst:188 |
| 228 | +msgid "Are the intersections bridges or tunnels and do not need to be nodded?" |
| 229 | +msgstr "" |
| 230 | + |
| 231 | +#: ../../build/docs/advanced/chapter-12.rst:190 |
| 232 | +msgid "Depending on the application some adjustments need to be made." |
| 233 | +msgstr "" |
| 234 | + |
| 235 | +#: ../../build/docs/advanced/chapter-12.rst:192 |
| 236 | +msgid "Some `topology manipulation <https://docs.pgrouting.org/latest/en/topology-functions.html>`_ functions help to detect and fix some of the topological errors in the data." |
| 237 | +msgstr "" |
0 commit comments