On 9/16/06, <b class="gmail_sendername">Chris Morley</b> <<a href="mailto:c.morley@gaseq.co.uk">c.morley@gaseq.co.uk</a>> wrote:<div><span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Thomas Walraet wrote:<br>> Chris Morley a écrit :<br>>> When drawing areas with the way method you have to watch that all the<br>>> segment directions are correctly aligned. This is annoying (direction<br>>> has nothing to do with area)
<br>><br>> Direction could have a lot to do with area.<br>><br>> For example, we can agree on always put the water on the right of a<br>> coast line :<br><br>> If water is always on the right side of the "way" that represent the
<br>> water/land demarcation, a renderer could draw the coast-line properly<br>> even if only BCD points are on the rendered dataset.<br>><br>You are right, it was an ill-advised statement. Indeed I had open a<br>
diagram <a href="http://www.w3.org/TR/SVG11/painting.html#FillProperties">http://www.w3.org/TR/SVG11/painting.html#FillProperties</a> showing<br>how SVG rendering of areas can depend on the the path direction. But<br>what matters is the *path* direction and not the individual *segment*
<br>directions. An ordered node-list inherently has a path direction to use<br>if necessary and I still think it is a cleaner area representation.</blockquote><div><br>The problem is with segment direction being an implied attribute of a segment.
<br><br>If you have two ways that want to share the same segment but in opposite directions you encounter the same problem.<br><br>The solution is to eliminate segments from the database altogether.  Ways become ordered lists of nodes.   Segments become ways  with just two nodes.  And you need to allow a hierarchy of ways to allow multiple sub-paths to be grouped together.
<br><br>Etienne<br><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;">Chris<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></blockquote></div><br>