[Tilesathome] Using Batik

Milenko milenko at King-nerd.com
Tue Oct 21 13:45:40 BST 2008


I had some time this morning to work on my clients and I can't seem to get
Batik or BatikAgent working.

Setting rasterizer=Batik in tilesathome.conf gives the following error:

	C:\tilesAtHome>perl tilesgen.pl xy 1182 1537 12
	- Using working directory C:\temp
	The system cannot find the path specified.
	! 'flock' not available. Do not run concurrent uploads
	- Pngcrush version 1.6.4
	- pngnq version 0.5
	- Java version 1.6 is available
	- rendering using or/p
	This is version 11297 (Trondheim) of tilesgen running on MSWin32,
ID: 21813
	- rasterizing using SVG::Rasterize::Engine::Batik
	[#0   0% ] Tileset (12,1182,1537) around 40.88,-76.07
	[#0   0% Download] Downloading: Map data for
captionless,tile,maplint
	[#0   0% Download] Downloading:
http://www.openstreetmap.org/api/0.5/map?bbox=-76.157227,40.835763,-
	[#0   0% Download] Checking for UTF-8 errors...
	[#0   0% captionless-z12] Rasterizing failed because of unsatisfied
prerequisite: No batik available
	 at lib/SVG/Rasterize/Engine/Batik.pm line 290.
	
	Exception in RenderSVG: No batik available at
lib/SVG/Rasterize/Engine/Batik.pm line 290.

Setting rasterizer=BatikAgent in tilesathome.conf give this error:

	C:\tilesAtHome>perl tilesgen.pl xy 1182 1537 12
	- Using working directory C:\temp
	The system cannot find the path specified.
	! 'flock' not available. Do not run concurrent uploads
	- Pngcrush version 1.6.4
	- pngnq version 0.5
	- Java version 1.6 is available
	- rendering using or/p
	This is version 11297 (Trondheim) of tilesgen running on MSWin32,
ID: 21813
	- rasterizing using SVG::Rasterize::Engine::BatikAgent
	[#0   0% ] Tileset (12,1182,1537) around 40.88,-76.07
	[#0   0% Download] Downloading: Map data for
captionless,tile,maplint
	[#0   0% Download] Downloading:
http://www.openstreetmap.org/api/0.5/map?bbox=-76.157227,40.835763,-
	[#0   0% Download] Checking for UTF-8 errors...
	[#0   0% captionless-z12] Rasterizing failed with runtime exception:
Error creating socket to the ba
	tik agent: Unknown error at lib/SVG/Rasterize/Engine/BatikAgent.pm
line 215.
	
	Exception in RenderSVG: Error creating socket to the batik agent:
Unknown error at lib/SVG/Rasterize
	/Engine/BatikAgent.pm line 215.

Batik 1.7 is installed to c:\tilesathome\batik\

Anyone else using Batik and run into this?

-Jeremy

-----Original Message-----
From: tilesathome-bounces at openstreetmap.org
[mailto:tilesathome-bounces at openstreetmap.org] On Behalf Of Knut Arne
Bjørndal
Sent: Monday, October 20, 2008 8:22 AM
To: tilesathome at openstreetmap.org
Subject: Re: [Tilesathome] Using Batik

On Mon, Oct 20, 2008 at 08:17:49AM -0400, Milenko wrote:
>                 I keep running into out of memory errors using 
> Inkscape, so I thought I'd give Batik a try.  I'm not having any luck 
> getting any of my clients to use Batik though.  Setting Batik=1 or 3 
> in tilesathome.conf seems to have no effect on client behavior - it just
continues to use Inkscape.

Did you read this in any current docs? In that case they would need to be
updated.

>                 Is there a different procedure for using Batik that I 
> missed?

Yes, set Rasterizer = Batik (or Rasterizer = BatikAgent) in tilesAtHome.conf

--
Knut Arne Bjørndal
aka Bob Kåre
bob+osm at cakebox.net
bobkare at irc






More information about the Tilesathome mailing list