source: subversion/applications/rendering/mapnik/set-mapnik-env @ 17049

Last change on this file since 17049 was 7207, checked in by martinvoosterhout, 12 years ago

Add support for alternate table prefixes. This is parallel to the -p switch
in osm2pgsql. It defaults ofcourse to the normal planet_osm but now
alternate prefixes are possible.

  • Property svn:executable set to *
File size: 2.6 KB
Line 
1#!/bin/sh
2#-----------------------------------------------------------------------------
3#
4#  set-mapnik-env
5#
6#  In this file several environment variables needed for creating OSM maps
7#  with Mapnik are set.
8#
9#  Create a local copy of this file and customize the definitions for your
10#  needs.
11#
12#-----------------------------------------------------------------------------
13#
14#  Every time you want to do some Mapnik rendering, source this file
15#  from the shell:
16#
17#    source set-mapnik-env
18#
19#  or call other Mapnik scripts through this script:
20#
21#    set-mapnik-env customize-mapnik-map >osm.xml
22#    set-mapnik-env generate_image.py
23#    set-mapnik-env generate_tiles.py
24#
25#  Note that it is NOT enough to run this like this:
26#    ./set-mapnik-env
27#    ./generate_image.py
28#
29#-----------------------------------------------------------------------------
30
31# This is the name of the *local* version of the Mapnik map file after it has
32# been run through the cutomize-mapnik-map script.
33export MAPNIK_MAP_FILE=~/mapnik/osm.xml
34
35# This is the directory where the icons and symbols for Mapnik are. If
36# you have checked out the OSM subversion directory into a directory
37# called ~/svn.openstreetmap.org, the symbols will be in
38# ~/svn.openstreetmap.org/applications/rendering/mapnik/symbols
39export MAPNIK_SYMBOLS_DIR=~/mapnik/symbols
40
41# This is the directory where you upacked the world_boundaries.tar.bz2
42# file you got from
43# http://artem.dev.openstreetmap.org/files/world_boundaries.tar.bz2
44export MAPNIK_WORLD_BOUNDARIES_DIR=~/mapnik/world_boundaries
45
46# Directory where the created map tiles should be stored. Must end with
47# a slash (/)
48export MAPNIK_TILE_DIR=~/mapnik/tiles/
49
50# This is the name of the server running the PostgreSQL database. Leave
51# this empty if your database is on the local machine.
52export MAPNIK_DBHOST=""
53
54# This is the TCP port where the PostgreSQL server is listening. The
55# default port for PostgreSQL is 5432. Leave this empty if your database
56# is on the local machine.
57export MAPNIK_DBPORT=""
58
59# This is the name of the database where the OSM data is stored.
60export MAPNIK_DBNAME='osm'
61
62# This is the username we should use to log into the PostgreSQL database.
63export MAPNIK_DBUSER=`whoami`
64
65# This is the password we should use to log into the PostgreSQL database.
66export MAPNIK_DBPASS=""
67
68# This is the prefix used in the table names. Matches the -p option in osm2pgsql
69# Unspecified defaults to "planet_osm"
70export MAPNIK_PREFIX=""
71
72#-----------------------------------------------------------------------------
73# If there was any program name given on the command line, we call it now.
74$*
75
76#-----------------------------------------------------------------------------
Note: See TracBrowser for help on using the repository browser.