# - 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).
$ZOOMMAX = 8;
# Tilesize. Usually 256 for normal tiles or 512 for HD.
-$TILESIZE = 512;
+$TILESIZE = 256;
use Graphics::Magick;
mergetile($rz, $rx, $ry);
}
}
- $ntilesperdir = $ntilesperdir * 2;
}