<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<TITLE>Message</TITLE>

<META content="MSHTML 6.00.6000.16481" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=828253814-05072007><FONT face=Arial 
size=2>Hi</FONT></SPAN></DIV>
<DIV><SPAN class=828253814-05072007><FONT face=Arial 
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=828253814-05072007><FONT face=Arial size=2>Not sure if this is 
a newbies question or not.</FONT></SPAN></DIV>
<DIV><SPAN class=828253814-05072007><FONT face=Arial 
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=828253814-05072007><FONT face=Arial size=2>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.</FONT></SPAN></DIV>
<DIV><SPAN class=828253814-05072007></SPAN><SPAN class=828253814-05072007><FONT 
face=Arial size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=828253814-05072007><FONT face=Arial size=2>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</FONT></SPAN></DIV>
<DIV><SPAN class=828253814-05072007><FONT face=Arial 
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=828253814-05072007><FONT face=Courier size=2>** 
(inkscape:20625): CRITICAL **: void 
gnome_canvas_bpath_def_closepath(GnomeCanvasBpathDef*): assertion 
`bpd->moveto_idx >= 0' failed</FONT></SPAN></DIV>
<DIV><FONT face=Courier></FONT> </DIV>
<DIV><SPAN class=828253814-05072007><FONT face=Courier size=2>** 
(inkscape:20625): CRITICAL **: SPCurve* sp_curve_new_from_foreign_bpath(const 
NArtBpath*): assertion `new_bpath != NULL' failed</FONT></SPAN></DIV>
<DIV><FONT face=Courier></FONT> </DIV>
<DIV><SPAN class=828253814-05072007><FONT face=Courier size=2>** ERROR **: file 
sp-ellipse.cpp: line 248 (void sp_genericellipse_set_shape(SPShape*)): assertion 
failed: (c != NULL)<BR>aborting...</FONT></SPAN></DIV>
<DIV><FONT face=Courier></FONT> </DIV>
<DIV><SPAN class=828253814-05072007><FONT size=2><FONT face=Courier>Emergency 
save activated!<BR>Emergency save completed. Inkscape will close now.<BR>If you 
can reproduce this crash, please file a bug at </FONT><A 
href="http://www.inkscape.org"><FONT 
face=Courier>www.inkscape.org</FONT></A><BR><FONT face=Courier>with a detailed 
description of the steps leading to the crash, so we can fix 
it.</FONT></FONT></SPAN></DIV>
<DIV><FONT face=Courier></FONT> </DIV>
<DIV><SPAN class=828253814-05072007><FONT face=Courier size=2>** 
(process:20625): Message (recursed): Error: Inkscape encountered an internal 
error and will close now.<BR></FONT></SPAN></DIV>
<DIV><SPAN class=828253814-05072007><FONT face=Arial 
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=828253814-05072007><FONT face=Arial size=2>This is the shell 
script I am using:</FONT></SPAN></DIV>
<DIV><SPAN class=828253814-05072007><FONT face=Arial 
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=828253814-05072007><FONT size=1>
<P><FONT face=Courier size=2>#!/bin/bash</FONT></P>
<P><FONT face=Courier size=2>if [ "$1" = "" ]; then</FONT></P>
<P><FONT face=Courier><FONT size=2><SPAN class=828253814-05072007>   
</SPAN>echo "Useage : domap Letchworth | StAlbans"</FONT></FONT></P>
<P><FONT face=Courier size=2>else</FONT></P>
<P><FONT face=Courier><FONT size=2><SPAN 
class=828253814-05072007>    </SPAN>if [ "$1" = "Letchworth" ]; 
then</FONT></FONT></P>
<P></FONT><FONT face=Courier><FONT size=2><SPAN 
class=828253814-05072007>       </SPAN>wget 
http://www.openstreetmap.org/api/0.4/map?bbox=-0.279,51.93,-0.1734,52.03 -O 
rules/data-1.osm</FONT></FONT></P>
<P><FONT face=Courier><FONT size=2><SPAN 
class=828253814-05072007>    </SPAN>sed '$i\ <bounds 
minlat="51.93" minlon="-0.279" maxlat="52.03" maxlon="-0.176" />' 
rules/data-1.osm > rules/data.osm</FONT></FONT></P>
<P><FONT face=Courier><FONT size=2><SPAN 
class=828253814-05072007>    </SPAN>fi</FONT></FONT></P>
<P><FONT face=Courier size=2>xsltproc rules/standard.xml > map.svg</FONT></P>
<P><FONT face=Courier size=2>inkscape -f map.svg -A let-detailed.pdf</FONT></P>
<P><FONT face=Courier size=2>fi</FONT></P>
<P><FONT face=Courier size=2></FONT> </P></DIV>
<DIV><SPAN class=828253814-05072007><FONT face=Arial size=2>What am I doing 
wrong?</FONT></SPAN></DIV>
<DIV><SPAN class=828253814-05072007><FONT face=Arial 
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=828253814-05072007><FONT face=Arial 
size=2>Richard</FONT></SPAN></DIV>
<DIV>
<P><FONT face=Arial size=2></FONT><FONT size=1><FONT face=Arial 
size=2></FONT> </P></FONT></SPAN></DIV></BODY></HTML>