#! /bin/sh /usr/share/dpatch/dpatch-run ## 10-mapnikdir.dpatch by Andreas Putzo ## ## DP: Put mapnik files into gpsdrive directory. @DPATCH@ diff -urNad gpsdrive-2.10~pre4~/scripts/mapnik/Makefile.am gpsdrive-2.10~pre4/scripts/mapnik/Makefile.am --- gpsdrive-2.10~pre4~/scripts/mapnik/Makefile.am 2007-09-14 21:47:06.000000000 +0000 +++ gpsdrive-2.10~pre4/scripts/mapnik/Makefile.am 2007-10-16 08:22:45.000000000 +0000 @@ -2,7 +2,7 @@ bin_SCRIPTS = gpsdrive_mapnik_gentiles.py -mapnikdir = $(datadir)/mapnik +mapnikdir = $(datadir)/gpsdrive/mapnik mapnik_DATA = osm.xml EXTRA_DIST = setup_z_order.sql gpsdrive_mapnik_gentiles-in.py osm-in.xml @@ -13,7 +13,7 @@ dummy: gpsdrive_mapnik_gentiles.py: gpsdrive_mapnik_gentiles-in.py - sed 's,@DATA_DIR@,${datadir},' < $< > $@ + sed 's,@DATA_DIR@,${mapnikdir},' < $< > $@ osm.xml: osm-in.xml - sed 's,@DATA_DIR@,${datadir},' < $< > $@ + sed 's,@DATA_DIR@,${mapnikdir},' < $< > $@ diff -urNad gpsdrive-2.10~pre4~/scripts/mapnik/osm-in.xml gpsdrive-2.10~pre4/scripts/mapnik/osm-in.xml --- gpsdrive-2.10~pre4~/scripts/mapnik/osm-in.xml 2007-09-14 21:47:06.000000000 +0000 +++ gpsdrive-2.10~pre4/scripts/mapnik/osm-in.xml 2007-10-16 08:24:20.000000000 +0000 @@ -93,24 +93,24 @@ 5000 [amenity]='post_box' - + 5000 [amenity]='post_office' - + 250000 25000 [railway]='station' - + 25000 [railway]='station' - + 50000 @@ -127,51 +127,51 @@ 10000 [amenity]='pub' - + 100000 [natural]='peak' - + 5000 [man_made]='mast' - + 10000 [amenity]='recycling' - + 20000 [amenity]='hospital' - + 5000 [amenity]='bus_stop' or [highway]='bus_stop' - + 20000 [amenity]='parking' - + 10000 [amenity]='place_of_worship' - + 10000 [amenity]='airport' - + @@ -203,7 +203,7 @@ 50000 [landuse] = 'cemetery' - + @@ -1086,7 +1086,7 @@ 100000 1000 [railway] = 'rail' - + @@ -1567,7 +1567,7 @@ 100000 1000 [railway] = 'preserved' - + @@ -1579,19 +1579,19 @@ [highway] = 'motorway' and [length] = 2 500000 100 - + [highway] = 'motorway' and [length] = 3 500000 100 - + [highway] = 'motorway' and [length] = 4 500000 100 - + [highway] = 'trunk' or [highway] = 'primary' or [highway] = 'secondary' @@ -1628,12 +1628,12 @@ [oneway] = 'yes' or [oneway] = 'true' 25000 - + [oneway] = '-1' 25000 - + @@ -1641,7 +1641,7 @@ world-1 shape - @DATA_DIR@/mapnik/world_boundaries/world_boundaries_m + @DATA_DIR@/world_boundaries/world_boundaries_m @@ -1649,7 +1649,7 @@ world shape - @DATA_DIR@/mapnik/world_boundaries/world_bnd_m + @DATA_DIR@/world_boundaries/world_bnd_m @@ -1657,7 +1657,7 @@ coast-poly shape - @DATA_DIR@/mapnik/world_boundaries/shoreline_a + @DATA_DIR@/world_boundaries/shoreline_a @@ -1665,7 +1665,7 @@ coast-line shape - @DATA_DIR@/mapnik/world_boundaries/shoreline_l + @DATA_DIR@/world_boundaries/shoreline_l @@ -1674,7 +1674,7 @@ builtup shape - @DATA_DIR@/mapnik/world_boundaries/builtup_area + @DATA_DIR@/world_boundaries/builtup_area @@ -1786,7 +1786,7 @@ places shape - @DATA_DIR@/mapnik/world_boundaries/places + @DATA_DIR@/world_boundaries/places diff -urNad gpsdrive-2.10~pre4~/src/mapnik.cpp gpsdrive-2.10~pre4/src/mapnik.cpp --- gpsdrive-2.10~pre4~/src/mapnik.cpp 2007-09-14 21:47:13.000000000 +0000 +++ gpsdrive-2.10~pre4/src/mapnik.cpp 2007-10-16 08:22:45.000000000 +0000 @@ -156,7 +156,7 @@ if ( ! boost:: filesystem::exists(mapnik_config_file) ) mapnik_config_file.assign("../scripts/mapnik/osm.xml"); if ( ! boost:: filesystem::exists(mapnik_config_file) ) - mapnik_config_file.assign(DATADIR).append("/mapnik/osm.xml"); + mapnik_config_file.assign(DATADIR).append("/gpsdrive/mapnik/osm.xml"); cout << "Using Mapnik config-file: " << mapnik_config_file << endl; if ( ! boost:: filesystem::exists(mapnik_config_file) ) {