It is by design that items that have not yet been added to OSM use negative ids. It is also by design that anything deleted will have an action="delete" attribute.<br><br>The current version of Osmarender does not take account of the action="delete" attribute and so continues to render the line even though you think you have deleted it.
<br><br>I encountered this problem recently and had already developed a patch for it:<br><br>
Change line 169 of Osmarender.xsl to the following:<br><br> <xsl:variable name='allElements' select='$data/osm/*[not(@action="delete")]' /><br><br>That should supress anything that has been deleted from the .osm file, but is still present because it has not yet been uploaded to the server.
<br><br>Etienne<br><br><br><div><span class="gmail_quote">On 9/3/06, <b class="gmail_sendername">Dean Earley</b> <<a href="mailto:dean@earlsoft.co.uk">dean@earlsoft.co.uk</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi Imi.<br><br>(I'm posting to this list to get comments from any others that know java )<br><br>When items are added in JOSM, then deleted before an upload, they are<br>left in the saved OSM files. Unfortunately, this causes unsightly lines
<br>from one end to 0,0 when that OSM file is rendered in OSMARender.<br><br>I have had a look at the code, and it looks like they should be removed<br>in OsmDataLayer.cleanData/cleanIterator but they aren't as they aren't
<br>ever added to the list to be processed.<br><br>Is it just a matter of checking the ID is < 0 in cleanIterator?<br><br>Thanks.<br><br>--<br>Dean Earley, Dee (<a href="mailto:dean@earlsoft.co.uk">dean@earlsoft.co.uk</a>
)<br><br>irc: irc://irc.blitzed.org/<br>web: <a href="http://personal.earlsoft.co.uk">http://personal.earlsoft.co.uk</a><br>phone: +44 (0)780 8369596<br><br>_______________________________________________<br>dev mailing list
<br><a href="mailto:dev@openstreetmap.org">dev@openstreetmap.org</a><br><a href="http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/dev">http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/dev</a><br></blockquote>
</div><br>