more comments.
authorUser for running Openstreetmap-things <osm@osm.rrze.uni-erlangen.de>
Wed, 9 Sep 2015 10:13:34 +0000 (12:13 +0200)
committerUser for running Openstreetmap-things <osm@osm.rrze.uni-erlangen.de>
Wed, 9 Sep 2015 10:13:34 +0000 (12:13 +0200)
scripts/osm-mergemaptiles.pl

index 713007e79ea834a8b4c277b569ce95999084d148..e7a2ea836fff9967e66a7dd79a8e1cefb14d7a00 100755 (executable)
 # - For the foreground, change style.mss: background-color within
 #   Map { } needs to be "transparent" (without the quotes). #world in
 #   shapefiles.mss needs to be removed. Render zoomlevels 0-8.
-# Then use this script to merge back+foreground. Voila, nicer looking
-# tiles!
+# For rendering, the polytiles.pl script from
+# https://github.com/Zverik/polytiles can be very helpful.
+# You might have to remove some non installed fonts from the XML.
+# After you are done rendering the source tiles, you can then use this
+# script to merge back+foreground. Voila, nicer looking tiles!
 
 # WARNING: Doing this for zoom level 0 in HD requires 90 GB of
-# space in $TMPDIR!
+# space in $TMPDIR and/or RAM (depending on Graphics::Magick behaviour/config)!
 # That's why levels 0+1 are not generated by default (you need to change
-# a line below)
+# a line below, or generate them manually instead).
 
 # URL generally is:   /zoom/X/Y.png  within the dirs below.
 
 # The source for the foreground that you want to put over the
 # background. The foreground needs to exist for all zoomlevels you
 # want to generate.
-$srcfgpath = '/mnt/tiles/statictiles/lowzoom-fg/';
+$srcfgpath = '/mnt/tiles/statictiles/osm.org-lowzoom-fg/';
 # The source for the background. Only one zoomlevel needs to exist,
 # see ZOOMMAX below.
-$srcbgpath = '/mnt/tiles/statictiles/lowzoom-bg/';
+$srcbgpath = '/mnt/tiles/statictiles/osm.org-lowzoom-bg/';
 # Where the combined tiles (background+foreground) are written to.
-$dstpath='/mnt/tiles/statictiles/mergedtileshd/';
+$dstpath='/mnt/tiles/statictiles/osm.org-lowzoom-new/';
 
 # The name is a bit misleading: ZOOMMAX actually sets the zoomlevel
 # from which the backgrounds are taken (and then scaled as needed).
@@ -40,7 +43,7 @@ $dstpath='/mnt/tiles/statictiles/mergedtileshd/';
 $ZOOMMAX = 8;
 
 # Tilesize. Usually 256 for normal tiles or 512 for HD.
-$TILESIZE = 512;
+$TILESIZE = 256;
 
 use Graphics::Magick;
 
@@ -121,6 +124,5 @@ for ($rz = 2; $rz <= 8; $rz++) {
       mergetile($rz, $rx, $ry);
     }
   }
-  $ntilesperdir = $ntilesperdir * 2;
 }
 
This page took 0.050213 seconds and 4 git commands to generate.