[Tilesathome] Using Batik to render tiles instead of Inkscape

spaetz osm at sspaeth.de
Fri Oct 5 11:33:27 BST 2007


On Fri, Oct 05, 2007 at 07:03:42PM +1000, Brent Easton wrote:
> I am thinking of using Batik to just create large images from the zooms (ie 512,512 form z13, 1024x1024 from z14) and then using Image-magick to cut them. I think it is going to be way faster.

This is essentially what it is doing already. It renders "y-stripes" across the whole horizontal area. However inkscape still seems to be loading and processing the full SVG file or it wouldn't die from these memory crashes I assume. The cutting is being done by Perls GD library functions.

 
> Also, what is with the strange size 
> 
> height="878.838012279079px" width="878.909999999848px"

err, the inkscape -w and -h parameters are using $SizeX and $SizeY in function svg2png.
those 2 parameters are calculated on line 767 and passed ti svg2png:
    my $Width = 256 * (2 ** ($Zoom - $ZOrig));  # Pixel size of tiles
    my $Height = 256; # Pixel height of tile

So the image heigth and width should never be some weird number.

Those x,y numbers are calculated on lines 807-820 which contain scary projection stuff which is bound to be weird decimal numbers. DOn't ask me to explain those though :-).

spaetz
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 186 bytes
Desc: not available
URL: <http://lists.openstreetmap.org/pipermail/tilesathome/attachments/20071005/3226fc5e/attachment.pgp>


More information about the Tilesathome mailing list