source: subversion/applications/rendering/parking/mapnik/mapnik-to-bw-trunk-for-toolserver.sh @ 26213

Last change on this file since 26213 was 26213, checked in by kdrangmeister, 9 years ago
  • Property svn:executable set to *
File size: 1.5 KB
Line 
1#! /bin/bash
2# run in the current workspace, assuming that "Parking" and "mapnik" are checked out projects.
3MAPNIKSRC=../../mapnik
4PARKINGSRC=.
5DESTDIR=/tmp/deploy
6TMPDIR=/tmp/parking-mapnik
7#-------------------------------------------------------
8
9MAPNIKPATCHED=$TMPDIR/mapnik
10PARKINGPATCHED=$TMPDIR/parking
11# cleanup
12rm -rf $DESTDIR
13rm -rf $TMPDIR
14# copy mapnik to temp
15mkdir -p $MAPNIKPATCHED
16cp -r $MAPNIKSRC/* $MAPNIKPATCHED
17# patch mapnik to have local settings
18cp ./mapnik-patch/datasource-settings.xml.inc.toolserver $MAPNIKPATCHED/inc/datasource-settings.xml.inc
19cp ./mapnik-patch/fontset-settings.xml.inc.toolserver $MAPNIKPATCHED/inc/fontset-settings.xml.inc
20cp ./mapnik-patch/settings.xml.inc.toolserver $MAPNIKPATCHED/inc/settings.xml.inc
21
22# copy parking to temp
23mkdir -p $PARKINGPATCHED
24cp -r $PARKINGSRC/* $PARKINGPATCHED
25mv $PARKINGPATCHED/parking-inc $PARKINGPATCHED/inc
26mv $PARKINGPATCHED/parking-symbols $PARKINGPATCHED/symbols
27
28# patch parking to have local settings
29cp ./mapnik-patch/datasource-settings.xml.inc.toolserver $PARKINGPATCHED/inc/datasource-settings.xml.inc
30cp ./mapnik-patch/fontset-settings.xml.inc.toolserver $PARKINGPATCHED/inc/fontset-settings.xml.inc
31cp ./mapnik-patch/settings.xml.inc.toolserver $PARKINGPATCHED/inc/settings.xml.inc
32
33#TODO are these ^^^^ settings the same as with mapnik???
34
35# call converter
36python generate_parking_layer_xml.py -s $PARKINGPATCHED -f osm-parktrans-src.xml -d $DESTDIR
37#python mapnik_to_bw.py -s $MAPNIKPATCHED -f osm.xml -d $DESTDIR
Note: See TracBrowser for help on using the repository browser.