source: subversion/applications/rendering/mapnik/convert @ 9669

Last change on this file since 9669 was 3250, checked in by joerg, 13 years ago

more substitutions which are consistent with install.txt

  • Property svn:executable set to *
File size: 2.0 KB
Line 
1#!/bin/sed -f
2#
3# This is a helper script which can be run to apply local customisations
4# to the SVN osm.xml file without having to manually merge local
5# paths, database params etc each time the file is updated
6#
7# First customize this file with your local details, then:
8#
9# $ ./convert osm.xml > osm-local.xml
10#
11#
12
13
14# replace the server with the local postgis database
15# <Parameter name="host">dev.openstreetmap.org</Parameter>
16s|<Parameter name="host">dev.openstreetmap.org</Parameter>|<Parameter name="host">/var/run/postgresql</Parameter>|
17
18#      <Parameter name="host">dev.openstreetmap.org</Parameter>
19#  s/dev\.openstreetmap\.org/localhost/
20
21# Since we normally run on localhost; we can delete these lines
22#      <Parameter name="port">5433</Parameter>     
23/<Parameter name="port">5433<\/Parameter>/d
24/<Parameter name="port">5432<\/Parameter>/d
25
26
27
28#      <Parameter name="user">steve</Parameter>
29s/"user">steve/"user">jburges/
30s/"user">artem/"user">jburges/
31
32# If I connect to a local socket i don't need any username
33# This only works with the newest Mapnik
34/<Parameter name="user">steve<\/Parameter>/d
35
36#      <Parameter name="dbname">mapnik</Parameter>
37s/"dbname">mapnik/"dbname">gis/
38s/"dbname">planet_osm/"dbname">gis/
39s/"dbname">steve/"dbname">gis/
40
41
42#       <Parameter name="file">/Users/artem/world_boundaries/places</Parameter>
43s|/Users/artem/world_boundaries/|/home/jburges/osm/data/world_boundaries/|
44s|/home/steve/world_boundaries/|/usr/share/mapnik/world_boundaries/|
45
46# PointSymbolizer file="/Users/artem/symbols/recycling.png" type="png" width="20" height="20" />
47s|/Users/artem/symbols/|/home/jburges/osm/svn.openstreetmap.org/applications/rendering/mapnik/symbols/|
48s|/home/steve/symbols/|/usr/share/mapnik/symbols/|
49
50#/home/jburges/osm/svn.openstreetmap
51s|/home/jburges/osm/svn.openstreetmap|/home/jburges/svn.openstreetmap|
52
53# /home/jburges/osm/data/world_boundaries
54s|/home/jburges/osm/data/world_boundaries|/home/jburges/osm/world_boundaries|
55
56# bold font fails for me, use this instead
57s/DejaVu Sans Bold/DejaVu Sans Book/
Note: See TracBrowser for help on using the repository browser.