[OSM-newbies] Osmarender with bounds
Max Moritz Sievers
mms at max-sievers.name
Sun Sep 30 16:02:31 BST 2007
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?
--
regards
Max Moritz Sievers
More information about the newbies
mailing list