<br><br><div><span class="gmail_quote">On 11/23/06, <b class="gmail_sendername">Robert (Jamie) Munro</b> <<a href="mailto:rjmunro@arjam.net">rjmunro@arjam.net</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;">
raphael Jacquot wrote:<br>> here's what I found during my little^Wextensive experiment:<br>><br>> 1) we have tons of duplicate segments<br>>      ((s1.from = s2.from) AND (<a href="http://s1.to">s1.to</a> = <a href="http://s2.to">
s2.to</a>)) OR<br>>      ((s1.from = <a href="http://s2.to">s2.to</a>) AND (<a href="http://s1.to">s1.to</a> = s2.from))<br>> 2) we have 4000+ degenerate segments<br>>      (s.from = <a href="http://s.to">s.to</a>
)<br>> 3) we have ways with no segments<br><br>Can we just write a script to delete them (except for case 1 where the<br>segments appear inside a way)? Database rules should be applied to make<br>sure they can't happen again. This may necessitate moving away from
<br>MySQL. :-)<br><br>> 4) we have degenerate ways where the way is neither a proper linear<br>> feature nor a proper closed polygon, but rather an unwidedly spaghetti<br>> monster. most of those furthermore involve a loop of some sort...
<br><br>These should be allowed. For rendering, I would suggest the following<br>algorithm:<br><br>* Go through the segments in the order they are in the DB.<br>* add all the segments until you reach one that doesn't start where the
<br>last one ended.<br>* Use what you have at this point to decide where to put the road name etc.<br>* Add the other segments<br><br>That way, people can control where the road name will be rendered on<br>split ways by making sure that the segments that want to share the name
<br>come first in the list. By default, editors should try to find the<br>longest path and put that at the start of the list. It would be nice if<br>josm could display this information somehow (little numbers next to<br>segments when a way is selected, maybe), and have an easy way to reorder
<br>segments in ways, either automatically or manually.</blockquote><div><br>This is a very good and constructive proposal.  We certainly need some rules like this to make sense of non-linear ways.<br><br>80n<br> </div><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Robert (Jamie) Munro<br><br><br><br>_______________________________________________<br>talk mailing list
<br><a href="mailto:talk@openstreetmap.org">talk@openstreetmap.org</a><br><a href="http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/talk">http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/talk</a><br><br><br>
<br></blockquote></div><br>