On 7/22/06, <b class="gmail_sendername">Immanuel Scholz</b> <<a href="mailto:immanuel.scholz@gmx.de">immanuel.scholz@gmx.de</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;">
Hi,<br><br>> All<br>> The treatment of filled areas in SVG is very simple and is described<br>> in about 3 paragraphs here:<br>> <a href="http://www.w3.org/TR/SVG/painting.html#FillProperties">http://www.w3.org/TR/SVG/painting.html#FillProperties
</a>.<br>><br>> I've used it successfully to rendered areas in Osmarender.<br>><br>> What are the problems that need to be addressed that are not covered<br>> by this?<br><br>The problem is, that we have two suggestions to choose from: either
<br>specify areas as "current way structure with a user defined tag" or as<br>an own data element, which is proposed to be a list of nodes (polyline).<br><br>Your website describes how the area is defined, if you have a list of
<br>nodes (polyline).<br><br>To use your suggested SVG specification for defining what should be<br>drawn, the former way (consisting of a list of lines) has to be<br>transformed in the latter (polyline). This is possible, but there are
<br>many possibilities, where an way is ill-formed.</blockquote><div><br>No.  The SVG specification does not have the notion of an ill-formed area.  It simply has a rule which says whether any point is inside or outside.  If the topology of the way is not "area like" then the resulting SVG filled area will not be area-like.
<br><br>This is like saying that if you create a rectangular area of height 10 and width 0, then you will not get an area, you will get a line.  if you create a way that is not closed or does not enclose a single region then you will not get an area, but you will get something.
<br></div><br>So, there are many possibilities that will not produce an area, but this does not mean they are ill-formed because there is no well-formed rule.  We can, of course, add some additional OSM well-formed rules about what makes a way (or area) be a valid area.  But what would those rules be?  And why would they be necessary?
<br><br>Etienne<br><br><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">So if Steve chooses to implement the "easy" and "simple" way and
<br>removing areas from the database, clients have to check whether you can<br>draw areas out of the way.<br><br>Additional to that, I think that the checking code will be implemented<br>in the server, namely as soon as the server has to provide area-specific
<br>requests.<br><br><br>Ciao, Imi.<br><br>PS: I get the feeling, that this discussion is senseless as Steve, who<br>is actually doing the stuff seems to not participating anymore?<br>Steve? ;-)<br><br><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>