[Tilesathome] Experimental Batik Support
Damian Sulewski
Damian.Sulewski at Uni-Dortmund.de
Sat Nov 10 12:28:33 GMT 2007
Hi,
i rendered
http://tah.openstreetmap.org/Browse/?x=2132&y=1360&z=12&layer=tile
with batik.
Could it be that i see a line at the top and the bottom of the tile?
I did a "svn up" before rendering, so everything should be up to date.
Batik version is 1.7 on an ubuntu 7.10 system.
Greetings,
Damian
Am Samstag, den 10.11.2007, 09:57 +1100 schrieb Brent Easton:
> After successful testing using Batik as a replacement for Inkscape, I have added Batik as an option for rendering in tiles at home.
>
> This is still somewhat experimental as I only have a 1GB windows machine. I need assistance to push it a bit further. I am especially interested in people trying with 2GB or more of RAM installed and on linux. Please just run tiles manually and check the results.
>
> The default behaviour of t at h is unchanged, it will continue to use Inkscape as before. To play with Batik you need to do the following:
>
> 1. Download the latest version of Batik and install it somewhere. I have been testing with the 1.7beta1 version. Batik just consists of a bunch of Java libaries (.jar files), just copy them into a convenient directory. Make sure you also have the batik-rasterizer.jar file.
>
> 2. Add some parameters to your tilesathome.conf file:
>
> a) Turn Batik rendering on:
>
> Batik=1
>
> b) Set the maximum size of the JVM to be allocated. You want to set this as large as possible to cope with complex tiles. On windows XP the maximum you can set is 1300M. If you set it too high, java will not start up. (Try java -Xmx1400M to test).
>
> BatikJVMSize=1300M
>
> c) Point to the location of Batik
>
> BatikPath=c:\tilesAtHome\batik\batik-rasterizer.jar
>
> 3. Make sure you have the latest Osmarender.xsl installed.
>
> That's it.
>
> This just uses the standard rasterizer program which does have one major disadvantage - If there is an error in the generated SVG, it just throws and exception and fails. However, batik-rasterizer is open source and we can modify this if testing is successful. There may also be scope to tweak the behaviour to match OSM processing and gain some performance improvements. The current procedure is to load up the same SVG multiple times to render each strip, we may be able to to load the SVG only once and render all of the required strips in one go.
>
> Looking forward to hearing results,
>
> Thanks,
> Brent.
>
>
> ____________________________________________________________
> Brent Easton
> Analyst/Programmer
> University of Western Sydney
> Email: b.easton at uws.edu.au
>
>
> _______________________________________________
> Tilesathome mailing list
> Tilesathome at openstreetmap.org
> http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/tilesathome
More information about the Tilesathome
mailing list