|
1 | 1 | .TH "OSM2PGSQL" "1" "2.2.0" "" "" |
2 | 2 | .SH NAME |
3 | | -osm2pgsql\-expire \- Visualize expire output |
| 3 | +.PP |
| 4 | +osm2pgsql-expire - Visualize expire output |
4 | 5 | .SH SYNOPSIS |
5 | | -\f[B]osm2pgsql\-expire\f[R] [\f[I]OPTIONS\f[R]] \f[I]OSM\-FILE\f[R] (1) |
6 | | -\f[B]osm2pgsql\-expire\f[R] \f[I]TILES\-FILE\f[R] (2) |
| 6 | +.PP |
| 7 | +\f[B]osm2pgsql-expire\f[R] [\f[I]OPTIONS\f[R]] \f[I]OSM-FILE\f[R] (1) |
| 8 | +\f[B]osm2pgsql-expire\f[R] \f[I]TILES-FILE\f[R] (2) |
7 | 9 | .SH DESCRIPTION |
| 10 | +.PP |
8 | 11 | \f[B]This command is currently experimental.\f[R] |
9 | 12 | .PP |
10 | 13 | The expire command can be used for two things: |
11 | 14 | .IP "1." 3 |
12 | 15 | \f[B]To check what tiles some OSM data is in.\f[R] If an |
13 | | -\f[I]OSM\-FILE\f[R] is specified osm2pgsql\-expire will calculate the |
| 16 | +\f[I]OSM-FILE\f[R] is specified osm2pgsql-expire will calculate the |
14 | 17 | tiles covering the objects in that file. |
15 | 18 | Note that the file must not be a change file but a regular OSM data |
16 | 19 | file! |
17 | 20 | Output is, by default, a tile file, but GeoJSON is also possible. |
| 21 | +Covering tiles are only calculated for tagged objects. |
18 | 22 | .IP "2." 3 |
19 | | -\f[B]Visualize tile list.\f[R] If a \f[I]TILE\-FILE\f[R] (presumably |
| 23 | +\f[B]Visualize tile list.\f[R] If a \f[I]TILE-FILE\f[R] (presumably |
20 | 24 | generated by osm2pgsql) is specified, a GeoJSON file is generated |
21 | 25 | showing all mentioned tiles. |
22 | 26 | In this mode all command line options are ignored. |
23 | 27 | .PP |
24 | 28 | Read the \f[I]Expire\f[R] chapter of the osm2pgsql manual |
25 | 29 | (https://osm2pgsql.org/doc/manual.html#expire) for details on how to |
26 | | -interpret the \f[CR]\-m, \[rs]\-\-mode\f[R] and |
27 | | -\f[CR]\[rs]\-\-full\-area\-limit\f[R] options. |
| 30 | +interpret the \f[V]-m, \[rs]--mode\f[R] and |
| 31 | +\f[V]\[rs]--full-area-limit\f[R] options. |
| 32 | +.SH GEOMETRY GENERATION |
| 33 | +.PP |
| 34 | +To calculate the tiles covering the specified OSM data in mode (1), a |
| 35 | +geometry has to be generated first for each object. |
| 36 | +This works as follow: |
| 37 | +.IP \[bu] 2 |
| 38 | +For nodes a point geometry will be generated. |
| 39 | +.IP \[bu] 2 |
| 40 | +For closed ways a polygon geometry will be generated, for non-closed |
| 41 | +ways a linestring geometry. |
| 42 | +If a generated polygon is not valid, the program will fall back to a |
| 43 | +linestring. |
| 44 | +If neither a valid polygon nor a valid linestring can be generated the |
| 45 | +object is ignored. |
| 46 | +.IP \[bu] 2 |
| 47 | +For relations a geometry is generated based on the \f[V]type\f[R] tag. |
| 48 | +For types \f[V]multipolygon\f[R] and \f[V]boundary\f[R], a multipolygon |
| 49 | +geometry is created, for types \f[V]route\f[R] and |
| 50 | +\f[V]multilinestring\f[R] a multilinestring geometry is created, for all |
| 51 | +other types a geometry collection is created. |
| 52 | +.PP |
| 53 | +Note that for (multi)polygons it depends on the command line options |
| 54 | +--mode and --full-area-limit whether the tiles calculation is based on |
| 55 | +the area or the boundary of the (multi)polygons. |
28 | 56 | .SH OPTIONS |
| 57 | +.PP |
29 | 58 | This program follows the usual GNU command line syntax, with long |
30 | | -options starting with two dashes (\f[CR]\-\-\f[R]). |
| 59 | +options starting with two dashes (\f[V]--\f[R]). |
31 | 60 | Mandatory arguments to long options are mandatory for short options too. |
32 | 61 | .SH MAIN OPTIONS |
33 | 62 | .TP |
34 | | -\-b, \-\-buffer=VALUE |
| 63 | +-b, --buffer=VALUE |
35 | 64 | Set buffer size around geometry relative to tile size. |
36 | 65 | Example: Set to 0.1 for a buffer that\[cq]s 10% of the tile size. |
37 | 66 | .TP |
38 | | -\-f, \-\-format=FORMAT |
| 67 | +-f, --format=FORMAT |
39 | 68 | Output format. |
40 | 69 | Options are `tiles' (default) or `geojson'. |
41 | 70 | The GeoJSON output uses the Web Mercator projection (EPSG:3857) which is |
42 | 71 | supported by many programs although, strictly speaking, it is not |
43 | 72 | allowed by the GeoJSON spec. |
44 | 73 | .TP |
45 | | -\-\-full\-area\-limit=VALUE |
| 74 | +--full-area-limit=VALUE |
46 | 75 | Set full area limit. |
47 | 76 | .TP |
48 | | -\-m, \-\-mode=MODE |
| 77 | +-m, --mode=MODE |
49 | 78 | Set expire mode. |
50 | | -One of \f[CR]boundary_only\f[R], \f[CR]full_area\f[R] (default), and |
51 | | -\f[CR]hybrid\f[R]. |
| 79 | +One of \f[V]boundary_only\f[R], \f[V]full_area\f[R] (default), and |
| 80 | +\f[V]hybrid\f[R]. |
52 | 81 | .TP |
53 | | -\-z, \-\-zoom=ZOOM |
| 82 | +-z, --zoom=ZOOM |
54 | 83 | Zoom level on which to calculate tiles. |
55 | 84 | .SH HELP/VERSION OPTIONS |
56 | 85 | .TP |
57 | | -\-h, \-\-help |
| 86 | +-h, --help |
58 | 87 | Print help. |
59 | 88 | .TP |
60 | | -\-V, \-\-version |
| 89 | +-V, --version |
61 | 90 | Print osm2pgsql version. |
62 | 91 | .SH LOGGING OPTIONS |
63 | 92 | .TP |
64 | | -\-\-log\-level=LEVEL |
| 93 | +--log-level=LEVEL |
65 | 94 | Set log level (`debug', `info' (default), `warn', or `error'). |
66 | 95 | .SH SEE ALSO |
67 | 96 | .IP \[bu] 2 |
68 | | -\c |
69 | | -.UR https://osm2pgsql.org |
70 | | -osm2pgsql website |
71 | | -.UE \c |
| 97 | +osm2pgsql website (https://osm2pgsql.org) |
72 | 98 | .IP \[bu] 2 |
73 | | -\c |
74 | | -.UR https://osm2pgsql.org/doc/manual.html |
75 | | -osm2pgsql manual |
76 | | -.UE \c |
| 99 | +osm2pgsql manual (https://osm2pgsql.org/doc/manual.html) |
77 | 100 | .IP \[bu] 2 |
78 | 101 | \f[B]osm2pgsql\f[R](1) |
79 | 102 | .IP \[bu] 2 |
|
0 commit comments