mirror of
https://github.com/openstreetmap/mod_tile.git
synced 2025-08-12 02:41:14 +00:00
Use /var/cache instead of /var/lib for tiles
This commit is contained in:
@ -22,11 +22,11 @@ options starting with two dashes (`-').
|
||||
A summary of options is included below.
|
||||
.TP
|
||||
\fB\-t\fR|\-\-tile-dir
|
||||
Specify the base directory where the tiles are stored. The default is /var/lib/mod_tile
|
||||
Specify the base directory where the tiles are stored. The default is /var/cache/renderd/tiles
|
||||
.TP
|
||||
\fB\-m\fR|\-\-map
|
||||
Specify the map style to convert. This specifies the full path to the files and is relative to the tile directory.
|
||||
The default is "default" and results in a full path of /var/lib/mod_tile/default to search for the tiles to convert
|
||||
The default is "default" and results in a full path of /var/cache/renderd/tiles/default to search for the tiles to convert
|
||||
.TP
|
||||
\fB\-u\fR|\-\-unpack
|
||||
Unpack the .meta files back to PNGs
|
||||
|
@ -51,7 +51,7 @@ Specify the number of parallel requests to renderd. Should renderd have less thr
|
||||
default if \fB\-\-append\fR is not specified.
|
||||
.TP
|
||||
\fB\-t\fR|\-\-tiledir=DIR
|
||||
Specify the base directory where the rendered tiles are. The default is '/var/lib/mod_tile'
|
||||
Specify the base directory where the rendered tiles are. The default is '/var/cache/renderd/tiles'
|
||||
.TP
|
||||
\fB\-z\fR|\-\-min-zoom=ZOOM
|
||||
Filter input to only render tiles greater or equal to this zoom level (default is 0)
|
||||
|
@ -38,7 +38,7 @@ Unix domain socket name for contacting renderd.
|
||||
The number of parallel request threads (default 1).
|
||||
.TP
|
||||
\fB\-t\fR|\-\-tile-dir
|
||||
Tile cache directory (defaults to '/var/lib/mod_tile').
|
||||
Tile cache directory (defaults to '/var/cache/renderd/tiles').
|
||||
.TP
|
||||
\fB\-z\fR|\-\-min-zoom=ZOOM
|
||||
Filter input to only render tiles greater or equal to this zoom level (default is 0).
|
||||
|
@ -8,7 +8,7 @@
|
||||
|
||||
// With directory hashing enabled we rewrite the path so that tiles are really stored here instead
|
||||
#define DIRECTORY_HASH
|
||||
#define HASH_PATH "/var/lib/mod_tile"
|
||||
#define HASH_PATH "/var/cache/renderd/tiles"
|
||||
|
||||
// TILE_PATH is where Openlayers with try to fetch the "z/x/y.png" tiles from
|
||||
// this is now only used if DIRECTORY_HASH is undefined
|
||||
|
@ -9,7 +9,7 @@ OSM2PGSQL_BIN=osm2pgsql
|
||||
OSM2PGSQL_OPTIONS=
|
||||
#OSM2PGSQL_OPTIONS="--flat-nodes /path/to/flatnodes --hstore"
|
||||
|
||||
BASE_DIR=/var/lib/mod_tile
|
||||
BASE_DIR=/var/cache/renderd/tiles
|
||||
LOG_DIR=/var/log/tiles/
|
||||
WORKOSM_DIR=$BASE_DIR/.osmosis
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
#!/bin/bash
|
||||
STATE=/var/lib/mod_tile/.osmosis/state.txt
|
||||
STATE=/var/cache/renderd/tiles/.osmosis/state.txt
|
||||
|
||||
rep=`cat ${STATE} |\
|
||||
grep 'timestamp' |\
|
||||
|
Reference in New Issue
Block a user