On 9/20/06, <b class="gmail_sendername">Robert Hart</b> <<a href="mailto:Robert.Hart@burohappold.com">Robert.Hart@burohappold.com</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;">
Ahoy,<br><br>Some idea yes. Basically you'd want to find the bounding box of the area<br>then render the text at the middle of that. I'll look into it.<br><br>I've been working on automatically generating A-Z style indexes with
<br>grid-references in osmarender. It sort of works, but I've basically<br>discovered that the philosophy behind xslt is "Make simple things hard, make<br>hard things virtually impossible". Or maybe even "Make simple things
<br>virtually impossible, make anything that the xslt designers didn't<br>anticipate impossible"</blockquote><div><br>It is very different from a procedural language.  Some things are harder, some things are easier.  It has some nice characteristics which make it my tool of choice for processing xml data.  But you have to remember to use the right tool for the right job.  If your problem isn't xml then xsl isn't the solution.
<br><br>For Osmarender the input is xml, the output is xml (svg is an xml file) so it is a fairly good fit.  I find most of my problems are how to achieve the desired result in svg - but thats because I'm new to svg.<br><br>
Etienne<br><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;">Rob<br><br><br><br>-----Original Message-----<br>From: <a href="mailto:talk-bounces@openstreetmap.org">
talk-bounces@openstreetmap.org</a><br>To: <a href="mailto:talk@openstreetmap.org">talk@openstreetmap.org</a><br>Sent: 9/20/2006 12:01 AM<br>Subject: [OSM-talk] Text in areas with Osmarender<br><br>Ahoy,<br><br>I'd like to render a label, centred inside certain areas. For example:
<br>- Labels like "Playing fields" and "Cemetery" and "Allotments"<br>- Names of buildings, parks, woods, etc.<br><br>I've no idea how to achieve this, the limit of my Osmarender fiddling<br>
has been<br>new symbols and small tweaks. Does anybody have any bright ideas?<br><br>Regards,<br>Tom<br><br>--<br>The struggle against power is the struggle of memory against forgetting<br> - Kundera<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>This message has been scanned for viruses by MailControl - <a href="http://www.mailcontrol.com">www.mailcontrol.com</a><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>