forked from openplans/openblock-old
-
Notifications
You must be signed in to change notification settings - Fork 1
/
set-mapnik-env-local
executable file
·76 lines (64 loc) · 2.67 KB
/
set-mapnik-env-local
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
#!/bin/sh
#-----------------------------------------------------------------------------
#
# set-mapnik-env
#
# In this file several environment variables needed for creating OSM maps
# with Mapnik are set.
#
# Create a local copy of this file and customize the definitions for your
# needs.
#
#-----------------------------------------------------------------------------
#
# Every time you want to do some Mapnik rendering, source this file
# from the shell:
#
# source set-mapnik-env
#
# or call other Mapnik scripts through this script:
#
# set-mapnik-env customize-mapnik-map >osm.xml
# set-mapnik-env generate_image.py
# set-mapnik-env generate_tiles.py
#
# Note that it is NOT enough to run this like this:
# ./set-mapnik-env
# ./generate_image.py
#
#-----------------------------------------------------------------------------
# This is the name of the *local* version of the Mapnik map file after it has
# been run through the cutomize-mapnik-map script.
export MAPNIK_MAP_FILE=~/mapnik/osm.xml
# This is the directory where the icons and symbols for Mapnik are. If
# you have checked out the OSM subversion directory into a directory
# called ~/svn.openstreetmap.org, the symbols will be in
# ~/svn.openstreetmap.org/applications/rendering/mapnik/symbols
export MAPNIK_SYMBOLS_DIR=~/mapnik/symbols
# This is the directory where you upacked the world_boundaries.tar.bz2
# file you got from
# http://artem.dev.openstreetmap.org/files/world_boundaries.tar.bz2
export MAPNIK_WORLD_BOUNDARIES_DIR=~/osm_data/world_boundaries
# Directory where the created map tiles should be stored. Must end with
# a slash (/)
export MAPNIK_TILE_DIR=~/mapnik/tiles/
# This is the name of the server running the PostgreSQL database. Leave
# this empty if your database is on the local machine.
export MAPNIK_DBHOST=""
# This is the TCP port where the PostgreSQL server is listening. The
# default port for PostgreSQL is 5432. Leave this empty if your database
# is on the local machine.
export MAPNIK_DBPORT=""
# This is the name of the database where the OSM data is stored.
export MAPNIK_DBNAME='everyblock'
# This is the username we should use to log into the PostgreSQL database.
export MAPNIK_DBUSER="everyblock"
# This is the password we should use to log into the PostgreSQL database.
export MAPNIK_DBPASS="everyblock"
# This is the prefix used in the table names. Matches the -p option in osm2pgsql
# Unspecified defaults to "planet_osm"
export MAPNIK_PREFIX=""
#-----------------------------------------------------------------------------
# If there was any program name given on the command line, we call it now.
$*
#-----------------------------------------------------------------------------