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

Last change on this file since 2896 was 2896, checked in by jonb, 13 years ago

A small script to help localise the osm.xml file for your own setup

  • Property svn:executable set to *
File size: 1.4 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#      <Parameter name="host">dev.openstreetmap.org</Parameter>
14s/dev\.openstreetmap\.org/localhost/
15
16#      <Parameter name="port">5433</Parameter>     
17/<Parameter name="port">5433<\/Parameter>/d
18/<Parameter name="port">5432<\/Parameter>/d
19
20#      <Parameter name="user">steve</Parameter>
21s/"user">steve/"user">jburgess/
22s/"user">artem/"user">jburgess/
23
24#      <Parameter name="dbname">mapnik</Parameter>
25s/"dbname">mapnik/"dbname">gis/
26s/"dbname">planet_osm/"dbname">gis/
27s/"dbname">steve/"dbname">gis/
28
29
30#       <Parameter name="file">/Users/artem/world_boundaries/places</Parameter>
31s|/Users/artem/world_boundaries/|/home/jburgess/osm/data/world_boundaries/|
32s|/home/steve/world_boundaries/|/home/jburgess/osm/data/world_boundaries/|
33
34# PointSymbolizer file="/Users/artem/symbols/recycling.png" type="png" width="20" height="20" />
35s|/Users/artem/symbols/|/home/jburgess/osm/svn.openstreetmap.org/applications/rendering/mapnik/symbols/|
36s|/home/steve/symbols/|/home/jburgess/osm/svn.openstreetmap.org/applications/rendering/mapnik/symbols/|
37
38# bold font fails for me, use this instead
39s/DejaVu Sans Bold/DejaVu Sans Book/
Note: See TracBrowser for help on using the repository browser.