From 7a8d4e5b1f56bd48f26392caf7d3889531bea2d9 Mon Sep 17 00:00:00 2001 From: User for running Openstreetmap-things Date: Wed, 9 Sep 2015 12:13:34 +0200 Subject: [PATCH] more comments. --- scripts/osm-mergemaptiles.pl | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/scripts/osm-mergemaptiles.pl b/scripts/osm-mergemaptiles.pl index 713007e..e7a2ea8 100755 --- a/scripts/osm-mergemaptiles.pl +++ b/scripts/osm-mergemaptiles.pl @@ -13,25 +13,28 @@ # - 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; } -- 2.25.1