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

Oliver Reimann waschbaer42 at gmx.de
Thu Nov 30 19:48:03 GMT 2006


Hallo,

ok, I changend this back and it was like before.

./tilesGen.pl xy 2172 1396
.....
Rendering nice inkscape -w 256 -h 
256 --export-area=0.000000:0.000000:878.118797:878.900000   --export-png=gfx/12_2172_1396.png 
output.svg...
** (inkscape:11310): WARNING **: Export 
area '0.000000:0.000000:878.118797:878.900000' has negative width or height. 
Nothing exported.

Then I started manuelly:


inkscape -w 256 -h 
256 --export-area=0.000000:0.000000:878.118797:878.900000   --export-png=gfx/12_2172_1396.png 
output.svg

** (inkscape:11493): WARNING **: Export 
area '0.000000:0.000000:878.118797:878.900000' has negative width or height. 
Nothing exported.

And It didnt. If I change the call to (please note the 0.000 -> 0) 
inkscape -w 256 -h 
256 --export-area=0:0:878.118797:878.900000   --export-png=gfx/12_2172_1396.png 
output.svg
Background RRGGBBAA: ffffff00
Area 0:0:878:5,7716e-270 exported to 256 x 256 pixels (3,99196e+273 dpi)
Bitmap saved as: gfx/12_2172_1396.png

Then it works. Im a little confused about this. Which version of inkscape do 
you use? ( inkscape   0.44.1-1  )

Oliver




Am Donnerstag, 30. November 2006 20:23 schrieb OJW:
> 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"
>
> _______________________________________________
> talk mailing list
> talk at openstreetmap.org
> http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/talk




More information about the talk mailing list