[Tilesathome] Experimental Batik Support

Dirk-Lüder Kreie osm-list at deelkar.net
Mon Nov 19 01:24:39 GMT 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Alexander Wright schrieb:
> Right. Further information, and a solution!
> 
> I'm running Gentoo Linux and Batik 1.6. Gentoo uses a wrapper script to add 
> the classpath correctly (the CLASSPATH variable is ignored when you use -jar 
> on the command line). Thus you need to modify tilesGen.pl:
> 
> --- tilesGen.pl (revision 5507)
> +++ tilesGen.pl (working copy)
> @@ -1026,11 +1026,8 @@
>          my $Width = $X2 - $X1;
>          my $Height = $Y2 - $Y1;
> 
> -        $Cmd = sprintf("%s%s java -Xms256M -Xmx%s -jar %s -w %d -h %d -a %f,
> %f,%f,%f -m image/png -d \"%s\" \"%s%s\" > %s",
> -        $Config{i18n} ? "LC_ALL=C " : "",
> +        $Cmd = sprintf("%s /usr/bin/batik-rasterizer-1.6 -w %d -h %d -a %f,
> %f,%f,%f -m image/png -d \"%s\" \"%s%s\" > %s",
>          $Config{Niceness},
> -        $Config{BatikJVMSize},
> -        $Config{BatikPath},
>          $SizeX,
>          $SizeY,
>          $Left,$Top,$Width,$Height,
> 
> Note: This is rather a hack, as I've hardcoded the Batik path, but it works 
> for me (TM). :-)

How does it handle the JVM memory size?

- --

Dirk-Lüder "Deelkar" Kreie
Bremen - 53.0952°N 8.8652°E

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHQOXXFUbODdpRVDwRAm0tAJ9M/BLbmEWi6sFxFUXMEkJbEMHRzQCghYMd
6ZvHvAcPQDs55LZQgtUQ25Y=
=wJC+
-----END PGP SIGNATURE-----




More information about the Tilesathome mailing list