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

Last change on this file since 26267 was 26232, checked in by kdrangmeister, 9 years ago

All parking symbols are now created using imagemagick

  • Property svn:executable set to *
File size: 1.7 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/colorents* $PARKINGPATCHED
25#TODO ^^^^ remove it ###
26cp -r $PARKINGSRC/osm-park* $PARKINGPATCHED
27cp -r $PARKINGSRC/parking-inc $PARKINGPATCHED
28mv $PARKINGPATCHED/parking-inc $PARKINGPATCHED/inc
29cp -r $PARKINGSRC/parking-symbols-src $PARKINGPATCHED
30#mv $PARKINGPATCHED/parking-symbols-src $PARKINGPATCHED/parking-symbols
31cp -r $MAPNIKSRC/symbols $PARKINGPATCHED
32
33# patch parking to have local settings
34cp ./mapnik-patch/datasource-settings.xml.inc.toolserver $PARKINGPATCHED/inc/datasource-settings.xml.inc
35cp ./mapnik-patch/fontset-settings.xml.inc.toolserver $PARKINGPATCHED/inc/fontset-settings.xml.inc
36cp ./mapnik-patch/settings.xml.inc.toolserver $PARKINGPATCHED/inc/settings.xml.inc
37
38#TODO are these ^^^^ settings the same as with mapnik??? ###
39
40# call converter
41python generate_parking_layer_xml.py -s $PARKINGPATCHED -f osm-parktrans-src.xml -d $DESTDIR
42#python mapnik_to_bw.py -s $MAPNIKPATCHED -f osm.xml -d $DESTDIR
Note: See TracBrowser for help on using the repository browser.