[OSM-newbies] <bounds in osmarender
Richard Endersby
rendersby at preditel.com
Thu Jul 5 15:54:36 BST 2007
Hi
Not sure if this is a newbies question or not.
I'm using osmarender on Ubuntu 7.04 and using the <bounds> element to limit
the size of my map due to a very long way which is nearby. The SVG file is
converted to a PDF via Inkscape.
Anyway, without the bounds element it works fine, albeit with the long way
included. If I add the <bounds> data to the rules.xml it works fine and
produces a nice map truncated to the area I'm interested in. However, if I
add it to the data.osm file, Inkscape crashes with a variety of messages
ending with
** (inkscape:20625): CRITICAL **: void
gnome_canvas_bpath_def_closepath(GnomeCanvasBpathDef*): assertion
`bpd->moveto_idx >= 0' failed
** (inkscape:20625): CRITICAL **: SPCurve*
sp_curve_new_from_foreign_bpath(const NArtBpath*): assertion `new_bpath !=
NULL' failed
** ERROR **: file sp-ellipse.cpp: line 248 (void
sp_genericellipse_set_shape(SPShape*)): assertion failed: (c != NULL)
aborting...
Emergency save activated!
Emergency save completed. Inkscape will close now.
If you can reproduce this crash, please file a bug at
<http://www.inkscape.org> www.inkscape.org
with a detailed description of the steps leading to the crash, so we can fix
it.
** (process:20625): Message (recursed): Error: Inkscape encountered an
internal error and will close now.
This is the shell script I am using:
#!/bin/bash
if [ "$1" = "" ]; then
echo "Useage : domap Letchworth | StAlbans"
else
if [ "$1" = "Letchworth" ]; then
wget
http://www.openstreetmap.org/api/0.4/map?bbox=-0.279,51.93,-0.1734,52.03 -O
rules/data-1.osm
sed '$i\ <bounds minlat="51.93" minlon="-0.279" maxlat="52.03"
maxlon="-0.176" />' rules/data-1.osm > rules/data.osm
fi
xsltproc rules/standard.xml > map.svg
inkscape -f map.svg -A let-detailed.pdf
fi
What am I doing wrong?
Richard
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/newbies/attachments/20070705/2742b2f5/attachment.html>
More information about the newbies
mailing list