You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/chapters/osm2pgrouting.rst
+1-9Lines changed: 1 addition & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -92,6 +92,7 @@ Then run the converter:
92
92
-conf "/usr/share/osm2pgrouting/mapconfig.xml" \
93
93
-dbname pgrouting-workshop \
94
94
-user user \
95
+
-host localhost \
95
96
-clean
96
97
97
98
List of all possible parameters:
@@ -144,15 +145,6 @@ List of all possible parameters:
144
145
- drop peviously created tables
145
146
- no
146
147
147
-
.. note::
148
-
149
-
* There might be an updated version of osm2pgrouting available. To update the package run:
150
-
151
-
.. code-block:: bash
152
-
153
-
sudo apt-get update
154
-
sudo apt-get install --only-upgrade osm2pgrouting
155
-
156
148
157
149
Depending on the size of your network the calculation and import may take a while. After it's finished connect to your database and check the tables that should have been created:
Fortunately we didn't need to wait too long because the data is small. But your network data might be very large, so it's a good idea to add an index to ``source`` and ``target`` column.
135
+
Make sure that your network table has an index for ``source`` and ``target`` columns.
136
136
137
137
.. code-block:: sql
138
138
139
-
CREATE INDEX source_idx ON ways("source");
140
-
CREATE INDEX target_idx ON ways("target");
139
+
CREATE INDEX ways_source_idx ON ways("source");
140
+
CREATE INDEX ways_target_idx ON ways("target");
141
141
142
142
After these steps our routing database looks like this:
143
143
@@ -146,20 +146,20 @@ After these steps our routing database looks like this:
0 commit comments