source: subversion/sites/www.openstreetbrowser.org/src/do_all-dist @ 17282

Last change on this file since 17282 was 16401, checked in by skunk, 11 years ago
  • Anpassungen zum neuen Test-Environment
  • Property svn:executable set to *
File size: 929 bytes
Line 
1#!/bin/bash
2
3export ROOT_PATH=/scratch/mapnik
4export SOFTWARE_PATH=/scratch/mapnik/software
5
6echo "* Delete old tiles"
7rm -r $ROOT_PATH/data/tiles/*
8
9echo "* Download new OSM-File"
10cd $ROOT_PATH/data
11wget -N http://download.geofabrik.de/osm/europe.osm.bz2
12
13echo "* Importing to Database"
14cd $SOFTWARE_PATH/osm2pgsql
15./osm2pgsql -c -s -m -d gis /scratch/mapnik/data/europe.osm.bz2
16
17echo "* Preprocessing data"
18cd $ROOT_PATH
19psql gis < src/process.sql
20
21echo "* Update style-sheet"
22cd $SOFTWARE_PATH/cascadenik
23$ROOT_PATH/src/combine_cascadenik.pl > publtrans.xml
24
25echo "* Starting rendering"
26cd $SOFTWARE_PATH/mapnik
27source ./my-mapnik-env
28./generate_tiles0.py&
29./generate_tiles1.py&
30./generate_tiles2.py&
31./generate_tiles3.py&
32$ROOT_PATH/src/copy_tiles&
33
34x=""
35while [ "$x" ne "q" ] ; then
36  read x
37end
38
39killall generate_tiles0.py
40killall generate_tiles1.py
41killall generate_tiles2.py
42killall generate_tiles3.py
43killall copy_tiles
Note: See TracBrowser for help on using the repository browser.