[OSM-newbies] Osmarender with bounds

Dirk-Lüder Kreie osm-list at deelkar.net
Sun Sep 30 17:24:03 BST 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Max Moritz Sievers schrieb:
> Hi,
> 
> I want to render a map of Darmstadt City (Germany). 
> 
> I downloaded the information with:
> wget 
> http://www.openstreetmap.org/api/0.4/map?bbox=8.616490,49.842924,8.689490,49.897924
> 
> and insterted in the renamed file data.osm after the line:
> <osm version="0.4" generator="OpenStreetMap server">
> 
> the following:
>  <bounds
>    minlat="49.842924"
>    minlon="8.616490"
>    maxlat="49.897924"
>    maxlon="8.689490" />
> 
> Then I executed:
> xmlstarlet tr osmarender.xsl osm-map-features-z17.xml > map.svg
> 
> and:
> inkscape -D -w 746 -e output.png map.svg
> 
> This command produces several times:
> ** (inkscape:7138): CRITICAL **: void 
> gnome_canvas_bpath_def_closepath(GnomeCanvasBpathDef*): assertion 
> `bpd->moveto_idx >= 0' failed
> 
> and ends with:
> Background RRGGBBAA: ffffff00
> Area -212,597:1017,11:21,0596:1059,96 exported to 746 x 137 pixels (287,345 
> dpi)
> Bitmap saved as: output.png
> 
> The 137 pixels height are only for the logo. There is no map.
> 
> Then I tried:
> mms at dbs:~/gps/DA$ inkscape -C -w 746 -e output.png map.svg
> 
> Now the error messages read as:
> ** (inkscape:7157): CRITICAL **: void 
> gnome_canvas_bpath_def_closepath(GnomeCanvasBpathDef*): assertion 
> `bpd->moveto_idx >= 0' failed
> 
> and end with:
> Background RRGGBBAA: ffffff00
> Area 0:0:744,094:1052,36 exported to 746 x 1055 pixels (90,2305 dpi)
> Bitmap saved as: output.png
> 
> 1055 pixels height could be correct. But the image is solely black.
> 
> What do I do wrong? Any suggestions?
> 

Some versions of inkscape on some systems seem to output only black on
png export. This bug haunts tiles at home, and it is not entirely clear
what causes this.

- --

Dirk-Lüder "Deelkar" Kreie
Bremen - 53.0952°N 8.8652°E

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFG/82iFUbODdpRVDwRAuADAJ9hl20TAomyciY9c5V/0FWokys2zwCfb9D2
DY6fU2KO7IsHrftLvbNry8M=
=LWBt
-----END PGP SIGNATURE-----




More information about the newbies mailing list