[OSM-talk] osmarendered map tiles (tiles at home), failure on inkscape?

OJW streetmap at blibbleblobble.co.uk
Thu Nov 30 19:23:57 GMT 2006


On Thursday 30 November 2006 18:41, Oliver Reimann wrote:
> I changed one line and now it works:
>
> tilesGen.pl :
>
>   my $Cmd = sprintf("%sinkscape -w %d -h %d --export-area=%d:%d:%d:
> %d --export-png=%s %s",
>
> I moved the %f to %d, so there is no more an fractional number in the
> inkscape call.

I would expect that change to leave a gap around the edge of tiles you 
generate, so that they don't exactly correspond with neighboring tiles.  The 
width and height in mm of the SVG isn't exactly integer (and the precision 
becomes even more important as it recursively divides the image into smaller 
chunks).  So don't do that.  

It looks like there's a space missing in front of the  --export-png in your 
original script - the output you emailed [1] had the export area and export 
png arguments joined together, which would probably confuse inkscape.  

If you change your coordinates back to %f now it should work.

regards

OJW

[1] "--export-area=0.000000:0.000000:866.216774:878.900000--export-png"




More information about the talk mailing list