forked from asciipip/TopOSM
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathset-toposm-env.templ
86 lines (70 loc) · 2.8 KB
/
set-toposm-env.templ
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
#!/bin/bash
# Configures the environment for TopOSM rendering.
# Change these settings to match your setup.
# Postgres settings
export DB_HOST="localhost"
export DB_NAME="osm"
export DB_PORT=5432 # local postgres port
export DB_PREFIX="planet_osm" # prefix for all tables
export DB_USER="mapnik" # username
export DB_PASS="mapnik"
export PGPASSWORD=$DB_PASS
export CONTOURS_DB="ned"
export CONTOURS_TABLE="contours"
export NHD_DB="nhd"
export NHD_TABLE_PREFIX=""
# Data directories
export DATADIR="/srv/usgs"
export OSM_DATADIR="/home/mapnik"
export WORLD_BOUNDARIES_DIR="$OSM_DATADIR/world_boundaries"
export NHD_DIR="$DATADIR/NHD" # NHD shapefiles
export NLCD_DIR="$DATADIR/NLCD"
export NED13_DIR="$DATADIR/NED/13" # NED 1/3" GeoTIFFs
export HILLSHADE_DIR="$DATADIR/NED/hillshade" # Hillshade GeoTIFFs
export COLORMAP_DIR="$DATADIR/NED/colormap" # Colormap GeoTIFFs
export HYPSORELIEF_DIR="$DATADIR/NED/hypsorelief" # Hillshade with hypsometric tinting
export SHIELDS_DIR="/srv/shields" # generated route shield images
# Output directories
export BASE_TILE_DIR="/srv/tiles" # output directory
export TEMP_DIR="/srv/usgs/cache" # preprocessed data and temporary files
# Misc files
export OSM2PGSQL_STYLE_FILE="/home/mapnik/default.style"
export COLORFILE="$HOME/src/toposm-new/colors.txt" # elevation-to-color mapping
# Extra TrueType fonts directory for Mapnik
# (this can be left blank)
export EXTRA_FONTS_DIR="/usr/share/fonts/truetype"
# Render settings
# NOTE: Apparently the Cairo backend is not thread safe (because,
# it turns out, cairo/pixman is not, so let's leave this at 1 for now...
export RENDER_THREADS=1 # typically equal to # of cores
export TILE_SIZE=256
export BORDER_WIDTH=128
export ERROR_LOG="errors.log"
export CACHE_LAYERS="contours"
# Mapnik layers to cache after rendering and reuse as needed. Comma-separated
# list. e.g. CACHE_LAYERS="contours,landcoverrelief"
export CACHE_LAYERS=""
# Quality setting for combined JPEG layer
export JPEG_QUALITY=90
# The area we're interested in
# (this setting limits both import and rendering)
# E.g. Conterminous US: "-127,23,-65,51"
export XMINLL=-127
export XMAXLL=-65
export YMINLL=23
export YMAXLL=51
export EXTENTS_LATLON="$XMINLL,$YMINLL,$XMAXLL,$YMAXLL"
export EXTENTS_MERCATOR="-20037508,-19929239,20037508,19929239"
# Tile serving settings
export AWS_ACCESS="ABCDEFGHIJKLMNOPQRS"
export AWS_SECRET="abcdefghijklmnopqrstuvwxyz0123456789ABCD"
export AWS_BUCKET="foo.example.com"
# Enable/disable extra debug/diagnostic messages during rendering
export TOPOSM_DEBUG=1
# Used to check that the env is set. Don't modify.
export TOPOSM_ENV_SET=1
# Use the local (patched) mapnik
# NOTE: Change PYTHONPATH to your python version
#LOCAL_MAPNIK_PREFIX="$HOME"
#export LD_LIBRARY_PATH="$LOCAL_MAPNIK_PREFIX/lib"
#export PYTHONPATH="$LOCAL_MAPNIK_PREFIX/lib/python2.7/site-packages"