[OSM-talk] Render icons for parking areas

Robin Paulson robin.paulson at gmail.com
Wed Dec 19 00:00:52 GMT 2007


On 19/12/2007, Frederik Ramm <frederik at remote.org> wrote:
> > why does the icon blindly get placed at the centre of gravity?
>
> It isn't. It is placed in the middle of the area's recangular bounding
> box no matter where the CG is.

ok, i shouldn't have blindly repeated what someone else said

> > i am confident the maths to figure out where to place the label,
> > whilst ensuring it is inside the bounds of the area (and complying
> > with any other set of arbitrary rules), would be fairly trivial to
> > implement.
>
> ... in XSLT where you don't have trigonometric functions?

off the top of my head:
trig functions are made up of other math functions which may or may
not be in xslt (i'm not familiar with it's specs) and which may or may
not be computationally possible;
i had other methods in mind, which may or may not be possible;

> > if no-one else is willing/a solution does not exist already, i will
> > look into this
>
> By all means, do give it a try. We're in desperate need of one or even
> a bunch of people familiar enough with Osmarender to make sensible
> changes there - currently our only man for that is 80n and he has many
> other things on his agenda. And if you solve the task you've sketched
> above then anything else is going to be peanuts ;-)

i'll see what i can do




More information about the talk mailing list