[OSM-talk] osmarendered map tiles (tiles at home), failure on inkscape?
Francisco R. Santos
frsantos at gmail.com
Fri Dec 1 11:00:37 GMT 2006
Hello,
I have this error too, generating ANY tile:
$ ./tilesGen.pl
Downloading: Request from server done, 23 bytes
OK, got something... (from the "grow" server module)
Doing zoom level 12, location 3772, 1621
Doing area around 35.065908,151.567383
Downloading: Map data done, 333 bytes
012 3772,1621: 35.03 - 35.10, 151.52 - 151.61
Transforming nice xmlstarlet tr osmarender.xsl osm-map-features.xml >
output.svg... done
gfx/12_3772_1621.png: Lat 35.102,35.030, Long 151.523,151.611, X 0.0,878.8,
Y 0.0,878.9
Rendering nice inkscape -w 256 -h 256 --export-area=0.000000:0.000000:
878.819266:878.900000 --export-png=gfx/12_3772_1621.png output.svg... done
gfx/13_7544_3242.png: Lat 35.102,35.066, Long 151.523,151.567, X 0.0,439.4,
Y 439.4,878.9
Rendering nice inkscape -w 256 -h 256 --export-area=0.000000:439.450000:
439.409633:878.900000 --export-png=gfx/13_7544_3242.png output.svg... done
gfx/14_15088_6484.png: Lat 35.102,35.084, Long 151.523,151.545, X 0.0,219.7,
Y 659.2,878.9
Rendering nice inkscape -w 256 -h 256 --export-area=0.000000:659.175000:
219.704816:878.900000 --export-png=gfx/14_15088_6484.png output.svg... done
gfx/15_30176_12968.png: Lat 35.102,35.093, Long 151.523,151.534, X 0.0,109.9,
Y 769.0,878.9
Rendering nice inkscape -w 256 -h 256 --export-area=0.000000:769.037500:
109.852408:878.900000 --export-png=gfx/15_30176_12968.png output.svg... done
gfx/16_60352_25936.png: Lat 35.102,35.097, Long 151.523,151.529, X 0.0,54.9,
Y 824.0,878.9
Rendering nice inkscape -w 256 -h 256 --export-area=0.000000:823.968750:
54.926204:878.900000 --export-png=gfx/16_60352_25936.png output.svg... done
gfx/17_120704_51872.png: Lat 35.102,35.100, Long 151.523,151.526, X 0.0,27.5,
Y 851.4,878.9
Rendering nice inkscape -w 256 -h 256 --export-area=0.000000:851.434375:
27.463102:878.900000 --export-png=gfx/17_120704_51872.png output.svg... done
gfx/17_120705_51872.png: Lat 35.102,35.100, Long 151.526,151.529, X 27.5,
54.9, Y 851.4,878.9
Rendering nice inkscape -w 256 -h 256 --export-area=27.463102:851.434375:
54.926204:878.900000 --export-png=gfx/17_120705_51872.png output.svg...
** (inkscape:11197): WARNING **: Export area '27.463102:851.434375:54.926204
:878.900000' has negative width or height. Nothing exported.
done
Can't open file gfx/17_120705_51872.png: No existe el fichero ó directorio
at /usr/share/perl5/LWP/UserAgent.pm line 427
This is Ubuntu Edgy with InkScape (0.44-1ubuntu2) and xmlstarlet (1.0.1-2)
On 11/30/06, Oliver Reimann <waschbaer42 at gmx.de> wrote:
>
> 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
>
> _______________________________________________
> talk mailing list
> talk at openstreetmap.org
> http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/talk
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/talk/attachments/20061201/9bb0e5b5/attachment.html>
More information about the talk
mailing list