[OSM-talk] Text in areas with Osmarender
Etienne
80n80n at gmail.com
Wed Sep 20 08:56:36 BST 2006
On 9/20/06, Robert Hart <Robert.Hart at burohappold.com> wrote:
>
> Ahoy,
>
> Some idea yes. Basically you'd want to find the bounding box of the area
> then render the text at the middle of that. I'll look into it.
>
> I've been working on automatically generating A-Z style indexes with
> grid-references in osmarender. It sort of works, but I've basically
> discovered that the philosophy behind xslt is "Make simple things hard,
> make
> hard things virtually impossible". Or maybe even "Make simple things
> virtually impossible, make anything that the xslt designers didn't
> anticipate impossible"
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.
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.
Etienne
Rob
>
>
>
> -----Original Message-----
> From: talk-bounces at openstreetmap.org
> To: talk at openstreetmap.org
> Sent: 9/20/2006 12:01 AM
> Subject: [OSM-talk] Text in areas with Osmarender
>
> Ahoy,
>
> I'd like to render a label, centred inside certain areas. For example:
> - Labels like "Playing fields" and "Cemetery" and "Allotments"
> - Names of buildings, parks, woods, etc.
>
> I've no idea how to achieve this, the limit of my Osmarender fiddling
> has been
> new symbols and small tweaks. Does anybody have any bright ideas?
>
> Regards,
> Tom
>
> --
> The struggle against power is the struggle of memory against forgetting
> - Kundera
>
> _______________________________________________
> talk mailing list
> talk at openstreetmap.org
> http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/talk
>
>
> This message has been scanned for viruses by MailControl -
> www.mailcontrol.com
>
> _______________________________________________
> talk mailing list
> talk at openstreetmap.org
> http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/talk
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/talk/attachments/20060920/abe10d23/attachment.html>
More information about the talk
mailing list