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