Check out the latest version of Routino: svn co http://routino.org/svn/trunk routino
Annotation of /trunk/doc/html/usage.html
Parent Directory
|
Revision Log
Revision 1157 -
(hide annotations)
(download)
(as text)
Mon Nov 19 18:30:35 2012 UTC (12 years, 3 months ago) by amb
File MIME type: text/html
File size: 26392 byte(s)
Mon Nov 19 18:30:35 2012 UTC (12 years, 3 months ago) by amb
File MIME type: text/html
File size: 26392 byte(s)
Do not require that --preserve must be used with --parse-only before changes can be applied (reverses r1151 for the change to functionality but preserves the changes to the functions that enable it).
1 | amb | 577 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> |
2 | <HTML> | ||
3 | |||
4 | <!-- | ||
5 | amb | 584 | Routino documentation - usage |
6 | amb | 577 | |
7 | Part of the Routino routing software. | ||
8 | |||
9 | amb | 953 | This file Copyright 2008-2012 Andrew M. Bishop |
10 | amb | 577 | |
11 | This program is free software: you can redistribute it and/or modify | ||
12 | it under the terms of the GNU Affero General Public License as published by | ||
13 | the Free Software Foundation, either version 3 of the License, or | ||
14 | (at your option) any later version. | ||
15 | |||
16 | This program is distributed in the hope that it will be useful, | ||
17 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
18 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
19 | GNU Affero General Public License for more details. | ||
20 | |||
21 | You should have received a copy of the GNU Affero General Public License | ||
22 | along with this program. If not, see http://www.gnu.org/licenses/. | ||
23 | --> | ||
24 | |||
25 | <HEAD> | ||
26 | <TITLE>Routino : Usage</TITLE> | ||
27 | <META http-equiv="Content-Type" content="text/html; charset=UTF-8"> | ||
28 | <LINK href="style.css" type="text/css" rel="stylesheet"> | ||
29 | </HEAD> | ||
30 | |||
31 | <BODY> | ||
32 | |||
33 | <!-- Header Start --> | ||
34 | |||
35 | <div class="header" align="center"> | ||
36 | |||
37 | <h1>Routino : Usage</h1> | ||
38 | |||
39 | <hr> | ||
40 | </div> | ||
41 | |||
42 | <!-- Header End --> | ||
43 | |||
44 | <!-- Content Start --> | ||
45 | |||
46 | <div class="content"> | ||
47 | |||
48 | <h2><a name="H_1_1"></a>Program Usage</h2> | ||
49 | |||
50 | amb | 1149 | There are five programs that make up this software. The first one takes the |
51 | amb | 577 | planet.osm datafile from OpenStreetMap (or other source of data using the same |
52 | formats) and converts it into a local database. The second program uses the | ||
53 | database to determine an optimum route between two points. The third program | ||
54 | allows visualisation of the data and statistics to be extracted. The fourth | ||
55 | amb | 1149 | program allows dumping the raw parsed data for test purposes and the fifth is a |
56 | test program for the tag transformations. | ||
57 | amb | 577 | |
58 | <h3><a name="H_1_1_1"></a>planetsplitter</h3> | ||
59 | |||
60 | This program reads in the OSM format XML file and splits it up to create the | ||
61 | database that is used for routing. | ||
62 | |||
63 | <pre class="boxed"> | ||
64 | Usage: planetsplitter [--help] | ||
65 | [--dir=<dirname>] [--prefix=<name>] | ||
66 | amb | 991 | [--sort-ram-size=<size>] [--sort-threads=<number>] |
67 | amb | 577 | [--tmpdir=<dirname>] |
68 | amb | 953 | [--tagging=<filename>] |
69 | amb | 982 | [--loggable] [--logtime] |
70 | [--errorlog[=<name>]] | ||
71 | amb | 577 | [--parse-only | --process-only] |
72 | amb | 1140 | [--append] [--preserve] [--changes] |
73 | amb | 577 | [--max-iterations=<number>] |
74 | amb | 975 | [--prune-none] |
75 | [--prune-isolated=<len>] | ||
76 | [--prune-short=<len>] | ||
77 | [--prune-straight=<len>] | ||
78 | amb | 577 | [<filename.osm> ...] |
79 | </pre> | ||
80 | |||
81 | <dl> | ||
82 | <dt>--help | ||
83 | <dd>Prints out the help information. | ||
84 | <dt>--dir=<dirname> | ||
85 | <dd>Sets the directory name in which to save the results. | ||
86 | Defaults to the current directory. | ||
87 | <dt>--prefix=<name> | ||
88 | <dd>Sets the filename prefix for the files that are created. | ||
89 | Defaults to no prefix. | ||
90 | <dt>--sort-ram-size=<size> | ||
91 | <dd>Specifies the amount of RAM (in MB) to use for sorting the data. If not | ||
92 | amb | 585 | specified then 64 MB will be used in slim mode or 256 MB otherwise. |
93 | amb | 991 | <dt>--sort-threads=<number> |
94 | <dd>The number of threads to use for data sorting (the sorting memory is | ||
95 | amb | 1023 | shared between the threads - too many threads and not enough memory will |
96 | reduce the performance). | ||
97 | amb | 577 | <dt>--tmpdir=<dirname> |
98 | <dd>Specifies the name of the directory to store the temporary disk files. If | ||
99 | not specified then it defaults to either the value of the --dir option or the | ||
100 | current directory. | ||
101 | amb | 953 | <dt>--tagging=<filename> |
102 | <dd>Sets the filename containing the list of tagging rules in XML format for | ||
103 | the parsing the input files. If the file doesn't exist then dirname, prefix | ||
104 | and "profiles.xml" will be combined and used, if that doesn't exist then the | ||
105 | file '/usr/local/share/routino/profiles.xml' (or custom installation | ||
106 | location) will be used. | ||
107 | amb | 586 | <dt>--loggable |
108 | <dd>Print progress messages that are suitable for logging to a file; normally | ||
109 | amb | 737 | an incrementing counter is printed which is more suitable for real-time |
110 | amb | 586 | display than logging. |
111 | amb | 982 | <dt>--logtime |
112 | <dd>Print the elapsed time for each processing step. | ||
113 | amb | 810 | <dt>--errorlog[=<name>] |
114 | <dd>Log OSM parsing and processing errors to 'error.log' or the specified file | ||
115 | amb | 1120 | name (the '--dir' and '--prefix' options are applied). If the --append |
116 | option is used then the existing log file will be appended, otherwise a new | ||
117 | one will be created. | ||
118 | amb | 953 | <dt>--parse-only |
119 | amb | 1120 | <dd>Parse the input files and store the data in intermediate files but don't |
120 | process the data into a routing database. This option must be used with the | ||
121 | --append option for all except the first file. | ||
122 | amb | 953 | <dt>--process-only |
123 | amb | 1120 | <dd>Don't read in any files but process the existing intermediate files |
124 | created by using the --parse-only option. | ||
125 | <dt>--append | ||
126 | <dd>Parse the input file and append the result to the existing intermediate | ||
127 | amb | 1140 | files; the appended file can be either an OSM file or an OSC change file. |
128 | amb | 1136 | <dt>--preserve |
129 | <dd>Store a set of intermediate files after parsing the OSM files, sorting and | ||
130 | amb | 1157 | removing duplicates; this allows appending an OSC file and re-processing |
131 | later. | ||
132 | amb | 1140 | <dt>--changes |
133 | <dd>This option indicates that the data being processed contains one or more | ||
134 | OSC (OSM changes) files, they must be applied in time sequence if more than | ||
135 | one is used. This option implies --append when parsing data files and | ||
136 | amb | 1157 | --preserve when processing data. |
137 | amb | 577 | <dt>--max-iterations=<number> |
138 | <dd>The maximum number of iterations to use when generating super-nodes and | ||
139 | amb | 861 | super-segments. Defaults to 5 which is normally enough. |
140 | amb | 975 | <dt>--prune-none |
141 | <dd>Disable the prune options below, they can be re-enabled by adding them to | ||
142 | the command line after this option. | ||
143 | <dt>--prune-isolated=<length> | ||
144 | amb | 1117 | <dd>Remove the access permissions for a transport type from small disconnected |
145 | groups of segments and remove the segments if they nd up with no access | ||
146 | permission (defaults to removing groups under 500m). | ||
147 | amb | 975 | <dt>--prune-short=<length> |
148 | <dd>Remove short segments (defaults to removing segments up to a maximum | ||
149 | length of 5m). | ||
150 | <dt>--prune-straight=<length> | ||
151 | <dd>Remove nodes in almost straight highways (defaults to removing nodes up to | ||
152 | 3m offset from a straight line). | ||
153 | amb | 577 | <dt><filename.osm> ... |
154 | <dd>Specifies the filename(s) to read data from, by default data is read from | ||
155 | the standard input. | ||
156 | </dl> | ||
157 | |||
158 | <p> | ||
159 | <i>Note: In version 1.4 of Routino the --transport, --not-highway and | ||
160 | --not-property options have been removed. The same functionality can be | ||
161 | amb | 737 | achieved by editing the tagging rules file to not output unwanted data.</i> |
162 | amb | 577 | |
163 | <p> | ||
164 | amb | 585 | <i>Note: In version 1.5 of Routino the --slim option has been removed but at |
165 | compilation time a separate program called <em>planetsplitter-slim</em> is | ||
166 | created that operates in slim mode. In slim mode the temporary files and | ||
167 | database files are read as needed rather than being mapped into memory. This | ||
168 | allows a database size greater than 2 GB on 32-bit machines or usage with little | ||
169 | or no virtual memory (e.g. some virtual machines). The penalty for this is that | ||
170 | amb | 953 | the program takes about twice as long to run.</i> |
171 | amb | 585 | |
172 | <p> | ||
173 | amb | 1120 | Example usage 1: |
174 | amb | 577 | |
175 | <pre class="boxed"> | ||
176 | amb | 1120 | planetsplitter --dir=data --prefix=gb great_britain.osm |
177 | amb | 577 | </pre> |
178 | |||
179 | This will generate the output files 'data/gb-nodes.mem', 'data/gb-segments.mem' | ||
180 | amb | 1120 | and 'data/gb-ways.mem'. Multiple filenames can be specified on the command |
181 | line and they will all be read in, combined and processed together. | ||
182 | amb | 577 | |
183 | amb | 1120 | <p> |
184 | Example usage 2: | ||
185 | amb | 577 | |
186 | amb | 1120 | <pre class="boxed"> |
187 | planetsplitter --dir=data --prefix=gb --parse-only great_britain_part1.osm | ||
188 | planetsplitter --dir=data --prefix=gb --parse-only --append great_britain_part2.osm | ||
189 | planetsplitter --dir=data --prefix=gb --parse-only --append ... | ||
190 | planetsplitter --dir=data --prefix=gb --process-only | ||
191 | </pre> | ||
192 | |||
193 | This will generate the same output files as the first example but parsing the | ||
194 | input files is performed separately from the data processing. The first file | ||
195 | read in must not use the --append option but the later ones must. | ||
196 | |||
197 | amb | 1140 | <p> |
198 | Example usage 3: | ||
199 | amb | 1120 | |
200 | amb | 1140 | <pre class="boxed"> |
201 | planetsplitter --dir=data --prefix=gb --preserve great_britain_part.osm | ||
202 | |||
203 | planetsplitter --dir=data --prefix=gb --changes great_britain.osc | ||
204 | </pre> | ||
205 | |||
206 | This will generate the same output files as the first example. The first | ||
207 | command will process the complete file and keep some intermediate data for | ||
208 | later. The second command will apply a set of changes to the stored | ||
209 | intermediate data and keep the updated intermediate files for repeating this | ||
210 | step later with more change data. | ||
211 | <p> | ||
212 | The parsing and processing can be split into multiple commands as it was in | ||
213 | amb | 1157 | example 2 with the --preserve option used with --process-only for the initial |
214 | OSM file(s) and the --changes option used with --parse-only or --process-only | ||
215 | for every OSC file. | ||
216 | amb | 1140 | |
217 | |||
218 | amb | 577 | <h3><a name="H_1_1_2"></a>router</h3> |
219 | |||
220 | This program performs the calculation of the optimum routes using the database | ||
221 | generated by the planetsplitter program. | ||
222 | |||
223 | <pre class="boxed"> | ||
224 | Usage: router [--help | --help-profile | --help-profile-xml | | ||
225 | --help-profile-json | --help-profile-perl ] | ||
226 | [--dir=<dirname>] [--prefix=<name>] | ||
227 | [--profiles=<filename>] [--translations=<filename>] | ||
228 | [--exact-nodes-only] | ||
229 | amb | 586 | [--loggable | --quiet] |
230 | amb | 577 | [--output-html] |
231 | [--output-gpx-track] [--output-gpx-route] | ||
232 | [--output-text] [--output-text-all] | ||
233 | [--output-none] | ||
234 | [--profile=<name>] | ||
235 | [--transport=<transport>] | ||
236 | [--shortest | --quickest] | ||
237 | --lon1=<longitude> --lat1=<latitude> | ||
238 | --lon2=<longitude> --lon2=<latitude> | ||
239 | [ ... --lon99=<longitude> --lon99=<latitude>] | ||
240 | amb | 675 | [--heading=<bearing>] |
241 | amb | 577 | [--highway-<highway>=<preference> ...] |
242 | [--speed-<highway>=<speed> ...] | ||
243 | [--property-<property>=<preference> ...] | ||
244 | amb | 622 | [--oneway=(0|1)] [--turns=(0|1)] |
245 | amb | 577 | [--weight=<weight>] |
246 | [--height=<height>] [--width=<width>] [--length=<length>] | ||
247 | </pre> | ||
248 | |||
249 | <dl> | ||
250 | <dt>--help | ||
251 | <dd>Prints out the help information. | ||
252 | <dt>--help-profile | ||
253 | <dd>Prints out the selected transport profile (type, speed limits, highway | ||
254 | preferences etc.) | ||
255 | <dt>--help-profile-xml | ||
256 | <dd>Prints out all the loaded profiles as an XML file in the same format that | ||
257 | can be loaded in. | ||
258 | <dt>--help-profile-json | ||
259 | <dd>Prints out all the loaded profiles in JavaScript Object Notation (JSON) | ||
260 | format for use in the interactive webpage. | ||
261 | <dt>--help-profile-perl | ||
262 | <dd>Prints out all the loaded profiles as a Perl object for use in the router | ||
263 | CGI. | ||
264 | <dt>--dir=<dirname> | ||
265 | <dd>Sets the directory name in which to read the local database. | ||
266 | Defaults to the current directory. | ||
267 | <dt>--prefix=<name> | ||
268 | <dd>Sets the filename prefix for the files in the local database. | ||
269 | Defaults to no prefix. | ||
270 | <dt>--profiles=<filename> | ||
271 | amb | 585 | <dd>Sets the filename containing the list of routing profiles in XML format. |
272 | If the file doesn't exist then dirname, prefix and "profiles.xml" will be | ||
273 | combined and used, if that doesn't exist then the file | ||
274 | '/usr/local/share/routino/profiles.xml' (or custom installation location) | ||
275 | will be used. | ||
276 | amb | 577 | <dt>--translations=<filename> |
277 | <dd>Sets the filename containing the list of translations in XML format for | ||
278 | the output files. If the file doesn't exist then dirname, prefix and | ||
279 | amb | 585 | "translations.xml" will be combined and used, if that doesn't exist then the |
280 | file '/usr/local/share/routino/translations.xml' (or custom installation | ||
281 | location) will be used. | ||
282 | amb | 577 | <dt>--exact-nodes-only |
283 | <dd>When processing the specified latitude and longitude points only select | ||
284 | the nearest node instead of finding the nearest point within a segment | ||
285 | (quicker but less accurate unless the points are already near nodes). | ||
286 | amb | 586 | <dt>--loggable |
287 | <dd>Print progress messages that are suitable for logging to a file; normally | ||
288 | amb | 737 | an incrementing counter is printed which is more suitable for real-time |
289 | amb | 586 | display than logging. |
290 | amb | 577 | <dt>--quiet |
291 | <dd>Don't generate any screen output while running (useful for running in a script). | ||
292 | <dt>--language=<lang> | ||
293 | <dd>Select the language specified from the file of translations. If this | ||
294 | option is not given and the file exists then the first language in the file | ||
295 | will be used. If this option is not given and no file exists the | ||
296 | compiled-in default language (English) will be used. | ||
297 | <dt>--output-html | ||
298 | <dt>--output-gpx-track | ||
299 | <dt>--output-gpx-route | ||
300 | <dt>--output-text | ||
301 | <dt>--output-text-all | ||
302 | <dd>Generate the selected output file formats (HTML, GPX track file, GPX route | ||
303 | file, plain text route and/or plain text with all nodes). If no output is | ||
304 | specified then all are generated, specifying any automatically disables those | ||
305 | not specified. | ||
306 | <dt>--output-none | ||
307 | <dd>Do not generate any output or read in any translations files. | ||
308 | <dt>--profile=<name> | ||
309 | <dd>Specifies the name of the profile to use. | ||
310 | <dt>--transport=<transport> | ||
311 | <dd>Select the type of transport to use, <transport> can be set to: | ||
312 | <ul> | ||
313 | <li>foot = Foot | ||
314 | <li>horse = Horse | ||
315 | <li>wheelchair = Wheelchair | ||
316 | <li>bicycle = Bicycle | ||
317 | <li>moped = Moped (Small motorbike, limited speed) | ||
318 | <li>motorbike = Motorbike | ||
319 | <li>motorcar = Motorcar | ||
320 | <li>goods = Goods (Small lorry, van) | ||
321 | <li>hgv = HGV (Heavy Goods Vehicle - large lorry) | ||
322 | <li>psv = PSV (Public Service Vehicle - bus, coach) | ||
323 | </ul> | ||
324 | Defaults to 'motorcar', this option also selects the default profile | ||
325 | information if the '--profile' option is not given and a profile matching | ||
326 | the transport name is found. | ||
327 | <dt>--shortest | ||
328 | <dd>Find the shortest route between the waypoints. | ||
329 | <dt>--quickest | ||
330 | <dd>Find the quickest route between the waypoints. | ||
331 | <dt>--lon1=<longitude>, --lat1=<latitude> | ||
332 | <dt>--lon2=<longitude>, --lat2=<latitude> | ||
333 | <dt>... --lon99=<longitude>, --lat99=<latitude> | ||
334 | <dd>The location of the waypoints that make up the start, middle and end | ||
335 | points of the route. Up to 99 waypoints can be specified and the route will | ||
336 | pass through each of the specified ones in sequence. The algorithm will use | ||
337 | the closest node or point within a segment that allows the specified traffic | ||
338 | type. | ||
339 | amb | 675 | <dt>--heading=<bearing> |
340 | <dd>Specifies the initial direction of travel at the start of the route (from | ||
341 | amb | 737 | the lowest numbered waypoint) as a compass bearing from 0 to 360 degrees. |
342 | amb | 577 | <dt>--highway-<highway>=<preference> |
343 | <dd>Selects the percentage preference for using each particular type of | ||
344 | highway. The value of <highway> can be selected from: | ||
345 | <ul> | ||
346 | <li>motorway = Motorway | ||
347 | <li>trunk = Trunk | ||
348 | <li>primary = Primary | ||
349 | <li>secondary = Secondary | ||
350 | <li>tertiary = Tertiary | ||
351 | <li>unclassified = Unclassified | ||
352 | <li>residential = Residential | ||
353 | <li>service = Service | ||
354 | <li>track = Track | ||
355 | <li>cycleway = Cycleway | ||
356 | <li>path = Path | ||
357 | <li>steps = Steps | ||
358 | amb | 586 | <li>ferry = Ferry |
359 | amb | 577 | </ul> |
360 | Default value depends on the profile selected by the --transport option. | ||
361 | <dt>--speed-<highway>=<speed> | ||
362 | <dd>Selects the speed limit in km/hour for each type of highway. Default | ||
363 | value depends on the profile selected by the --transport option. | ||
364 | <dt>--property-<property>=<preference> | ||
365 | <dd>Selects the percentage preference for using each particular highway | ||
366 | property | ||
367 | The value of <property> can be selected from: | ||
368 | <ul> | ||
369 | amb | 585 | <li>paved = Paved (suitable for normal wheels) |
370 | <li>multilane = Multiple lanes | ||
371 | <li>bridge = Bridge | ||
372 | <li>tunnel = Tunnel | ||
373 | <li>footroute = A route marked for foot travel | ||
374 | <li>bicycleroute = A route marked for bicycle travel | ||
375 | amb | 577 | </ul> |
376 | Default value depends on the profile selected by the --transport option. | ||
377 | <dt>--oneway=[0|1] | ||
378 | <dd>Selects if the direction of oneway streets are to be obeyed (useful to not | ||
379 | obey them when walking). Default value depends on the profile selected by | ||
380 | the --transport option. | ||
381 | amb | 622 | <dt>--turns=[0|1] |
382 | <dd>Selects if turn restrictions are to be obeyed (useful to not obey them | ||
383 | when walking). Default value depends on the profile selected by the | ||
384 | --transport option. | ||
385 | amb | 577 | <dt>--weight=<weight> |
386 | <dd>Specifies the weight of the mode of transport in tonnes; ensures that the | ||
387 | weight limit on the highway is not exceeded. Default value depends on the | ||
388 | profile selected by the --transport option. | ||
389 | <dt>--height=<height> | ||
390 | <dd>Specifies the height of the mode of transport in metres; ensures that the | ||
391 | height limit on the highway is not exceeded. Default value depends on the | ||
392 | profile selected by the --transport option. | ||
393 | <dt>--width=<width> | ||
394 | <dd>Specifies the width of the mode of transport in metres; ensures that the | ||
395 | width limit on the highway is not exceeded. Default value depends on the | ||
396 | profile selected by the --transport option. | ||
397 | <dt>--length=<length> | ||
398 | <dd>Specifies the length of the mode of transport in metres; ensures that the | ||
399 | length limit on the highway is not exceeded. Default value depends on the | ||
400 | profile selected by the --transport option. | ||
401 | </dl> | ||
402 | |||
403 | <p> | ||
404 | amb | 585 | <i>Note: In version 1.5 of Routino a slim option has been added and at |
405 | compilation time a separate program called <em>router-slim</em> is created that | ||
406 | operates in slim mode. In slim mode the database files are read as needed | ||
407 | rather than being mapped into memory.</i> | ||
408 | |||
409 | <p> | ||
410 | amb | 577 | The meaning of the <preference> parameter in the command line options is |
411 | slightly different for the highway preferences and the property preferences. | ||
412 | For the highway preference consider the choice between two possible highways | ||
413 | between the start and finish when looking for the shortest route. If highway A | ||
414 | has a preference of 100% and highway B has a preference of 90% then highway A | ||
415 | will be chosen even if it is up to 11% longer (100/90 = 111%). For the highway | ||
416 | properties each highway either has a particular property or not. If the | ||
417 | amb | 585 | preference for the property is 60% then a highway with the property has a |
418 | preference of 77% (sqrt(60%)) and one without has a preference of 63% | ||
419 | (sqrt(100-60%)). A highway with the property will be chosen even if it is up to | ||
420 | 22% longer than one without the property (77/63 = 122%). The overall preference | ||
421 | for each highway segment is the product of the preference for the highway type | ||
422 | and all of the preferences for the highway properties. | ||
423 | amb | 577 | |
424 | <p> | ||
425 | Example usage (motorbike journey, scenic route, not very fast): | ||
426 | |||
427 | <pre class="boxed"> | ||
428 | amb | 1120 | router --dir=data --prefix=gb --transport=motorbike --highway-motorway=0 \ |
429 | --highway-trunk=0 --speed-primary=80 --speed-secondary=80 --quickest | ||
430 | amb | 577 | </pre> |
431 | |||
432 | This will use the files 'data/gb-nodes.mem', 'data/gb-segments.mem' and | ||
433 | 'data/gb-ways.mem' to find the quickest route by motorbike not using motorways | ||
434 | or trunk roads and not exceeding 80 km/hr. | ||
435 | |||
436 | |||
437 | <h3><a name="H_1_1_3"></a>filedumper</h3> | ||
438 | |||
439 | This program is used to extract statistics from the database, extract particular | ||
440 | information for visualisation purposes or for dumping the database contents. | ||
441 | |||
442 | <pre class="boxed"> | ||
443 | Usage: filedumper [--help] | ||
444 | [--dir=<dirname>] [--prefix=<name>] | ||
445 | [--statistics] | ||
446 | [--visualiser --latmin=<latmin> --latmax=<latmax> | ||
447 | --lonmin=<lonmin> --lonmax=<lonmax> | ||
448 | --data=<data-type>] | ||
449 | [--dump [--node=<node> ...] | ||
450 | [--segment=<segment> ...] | ||
451 | amb | 592 | [--way=<way> ...] |
452 | amb | 601 | [--turn-relation=<relation> ...]] |
453 | amb | 577 | [--dump-osm [--no-super] |
454 | [--latmin=<latmin> --latmax=<latmax> | ||
455 | --lonmin=<lonmin> --lonmax=<lonmax>]] | ||
456 | </pre> | ||
457 | |||
458 | <dl> | ||
459 | <dt>--help | ||
460 | <dd>Prints out the help information. | ||
461 | <dt>--dir=<dirname> | ||
462 | <dd>Sets the directory name in which to read the local database. | ||
463 | Defaults to the current directory. | ||
464 | <dt>--prefix=<name> | ||
465 | <dd>Sets the filename prefix for the files in the local database. | ||
466 | <dt>--statistics | ||
467 | <dd>Prints out statistics about the database files. | ||
468 | <dt>--visualiser | ||
469 | <dd>Selects a data visualiser mode which will output a set of data according | ||
470 | to the other parameters below. | ||
471 | <dl> | ||
472 | <dt>--latmin=<latmin> --latmax=<latmax> | ||
473 | <dd>The range of latitudes to print the data for. | ||
474 | <dt>--lonmin=<lonmin> --lonmax=<lonmax> | ||
475 | <dd>The range of longitudes to print the data for. | ||
476 | <dt>--data=<data-type> | ||
477 | <dd>The type of data to output, <data-type> can be selected from: | ||
478 | <ul> | ||
479 | amb | 1002 | <li>junctions = segment count at each junction. |
480 | <li>super = super-node and super-segments. | ||
481 | <li>oneway = oneway segments. | ||
482 | amb | 1003 | <li>highway-* = segments of the specified highway type |
483 | (e.g. highway-primary to display segments ofprimary roads). | ||
484 | amb | 1002 | <li>transport-* = segments allowing the specified transport type |
485 | (e.g. transport-foot to display segments accessible on foot). | ||
486 | <li>turns = turn restrictions. | ||
487 | <li>speed = speed limits. | ||
488 | <li>weight = weight limits. | ||
489 | <li>height = height limits. | ||
490 | <li>width = width limits. | ||
491 | <li>length = length limits. | ||
492 | amb | 577 | </ul> |
493 | </dl> | ||
494 | <dt>--dump | ||
495 | <dd>Selects a data dumping mode which allows looking at individual items in | ||
496 | the databases (specifying 'all' instead of a number dumps all of them). | ||
497 | amb | 601 | More than one of the following parameters can be specified on the command |
498 | line. | ||
499 | amb | 577 | <dl> |
500 | <dt>--node=<node> | ||
501 | <dd>Prints the information about the selected node number (internal | ||
502 | number, not the node id number in the original source file). | ||
503 | <dt>--segment=<segment> | ||
504 | <dd>Prints the information about the selected segment number. | ||
505 | <dt>--way=<way> | ||
506 | <dd>Prints the information about the selected way number (internal | ||
507 | number, not the way id number in the original source file). | ||
508 | amb | 601 | <dt>--turn-relation=<relation> |
509 | <dd>Prints the information about the selected turn relation number | ||
510 | (internal number, not the relation id number in the original source | ||
511 | file). | ||
512 | amb | 577 | </dl> |
513 | <dt>--osm-dump | ||
514 | <dd>Dumps the contents of the database as an OSM format XML file, the whole | ||
515 | database will be dumped unless the latitude and longitude ranges are | ||
516 | specified. | ||
517 | <dl> | ||
518 | <dt>--no-super | ||
519 | <dd>The super segments will not be output. | ||
520 | <dt>--latmin=<latmin> --latmax=<latmax> | ||
521 | <dd>The range of latitudes to dump the data for. | ||
522 | <dt>--lonmin=<lonmin> --lonmax=<lonmax> | ||
523 | <dd>The range of longitudes to dump the data for. | ||
524 | </dl> | ||
525 | </dl> | ||
526 | |||
527 | amb | 585 | <p> |
528 | <i>Note: In version 1.5 of Routino a slim option has been added and at | ||
529 | compilation time a separate program called <em>filedumper-slim</em> is created | ||
530 | that operates in slim mode. In slim mode the database files are read as needed | ||
531 | rather than being mapped into memory.</i> | ||
532 | amb | 577 | |
533 | amb | 585 | |
534 | amb | 1149 | <h3><a name="H_1_1_4"></a>filedumperx</h3> |
535 | amb | 577 | |
536 | amb | 1149 | This program is a modified version of filedumper that will dump out the contents |
537 | of the intermediate data that is saved by planetsplitter after processing using | ||
538 | the --preserve or --changes option. This is intended for test purposes only and | ||
539 | gives no useful information about the routing database. | ||
540 | |||
541 | <pre class="boxed"> | ||
542 | Usage: filedumper [--help] | ||
543 | [--dir=<dirname>] [--prefix=<name>] | ||
544 | [--dump [--nodes] | ||
545 | [--segments] | ||
546 | [--ways] | ||
547 | [--route-relations] | ||
548 | [--turn-relations]] | ||
549 | </pre> | ||
550 | |||
551 | <dl> | ||
552 | <dt>--help | ||
553 | <dd>Prints out the help information. | ||
554 | <dt>--dir=<dirname> | ||
555 | <dd>Sets the directory name in which to read the local database. | ||
556 | Defaults to the current directory. | ||
557 | <dt>--prefix=<name> | ||
558 | <dd>Sets the filename prefix for the files in the local database. | ||
559 | <dt>--dump | ||
560 | <dd>Dumps the complete set of data in the intermediate files that are written | ||
561 | by planetsplitter using the --preserve or --changes options. | ||
562 | <dl> | ||
563 | <dt>--nodes | ||
564 | <dd>Dumps the node data. | ||
565 | <dt>--segments | ||
566 | <dd>Dumps the segment data. | ||
567 | <dt>--ways | ||
568 | <dd>Dumps the way data. | ||
569 | <dt>--route-relations | ||
570 | <dd>Dumps the route relation data. | ||
571 | <dt>--turn-relations | ||
572 | <dd>Dumps the turn relation data. | ||
573 | </dl> | ||
574 | </dl> | ||
575 | |||
576 | |||
577 | <h3><a name="H_1_1_5"></a>tagmodifier</h3> | ||
578 | |||
579 | amb | 577 | This program is used to run the tag transformation process on an OSM XML file |
580 | for test purposes. | ||
581 | |||
582 | <pre class="boxed"> | ||
583 | Usage: tagmodifier [--help] | ||
584 | amb | 586 | [--loggable] |
585 | amb | 577 | [--tagging=<filename>] |
586 | [<filename.osm>] | ||
587 | </pre> | ||
588 | |||
589 | <dl> | ||
590 | <dt>--help | ||
591 | <dd>Prints out the help information. | ||
592 | amb | 586 | <dt>--loggable |
593 | <dd>Print progress messages that are suitable for logging to a file; normally | ||
594 | amb | 737 | an incrementing counter is printed which is more suitable for real-time |
595 | amb | 586 | display than logging. |
596 | amb | 577 | <dt>--tagging=<filename> |
597 | <dd>The name of the XML file containing the tagging rules (defaults to | ||
598 | 'tagging.xml' in the current directory). | ||
599 | <dt><filename.osm> ... | ||
600 | <dd>Specifies the filename to read data from, by default data is read from | ||
601 | the standard input. | ||
602 | </dl> | ||
603 | |||
604 | </div> | ||
605 | |||
606 | <!-- Content End --> | ||
607 | |||
608 | <!-- Footer Start --> | ||
609 | |||
610 | <div class="footer" align="center"> | ||
611 | <hr> | ||
612 | |||
613 | <address> | ||
614 | © Andrew M. Bishop = <amb "at" gedanken.demon.co.uk> | ||
615 | </address> | ||
616 | |||
617 | </div> | ||
618 | |||
619 | <!-- Footer End --> | ||
620 | |||
621 | </BODY> | ||
622 | |||
623 | </HTML> |