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

Last change on this file since 17971 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
RevLine 
[2896]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
[3250]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
[2896]18#      <Parameter name="host">dev.openstreetmap.org</Parameter>
[3250]19#  s/dev\.openstreetmap\.org/localhost/
[2896]20
[3250]21# Since we normally run on localhost; we can delete these lines
[2896]22#      <Parameter name="port">5433</Parameter>     
23/<Parameter name="port">5433<\/Parameter>/d
24/<Parameter name="port">5432<\/Parameter>/d
25
[3250]26
27
[2896]28#      <Parameter name="user">steve</Parameter>
[3250]29s/"user">steve/"user">jburges/
30s/"user">artem/"user">jburges/
[2896]31
[3250]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
[2896]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>
[3250]43s|/Users/artem/world_boundaries/|/home/jburges/osm/data/world_boundaries/|
44s|/home/steve/world_boundaries/|/usr/share/mapnik/world_boundaries/|
[2896]45
46# PointSymbolizer file="/Users/artem/symbols/recycling.png" type="png" width="20" height="20" />
[3250]47s|/Users/artem/symbols/|/home/jburges/osm/svn.openstreetmap.org/applications/rendering/mapnik/symbols/|
48s|/home/steve/symbols/|/usr/share/mapnik/symbols/|
[2896]49
[3250]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
[2896]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.