[OSM-dev] Osmarender feature on only one side of road

80n 80n80n at gmail.com
Mon Jul 2 02:30:05 BST 2007


Lachlan
I've been looking for a method of doing this for some time.

Ideally what is needed is a method of offsetting a path.  It's possible to
offset text using the dy attribute as you have already noticed.  AFAIK there
is no similar method of offsetting the path itself.  The problem is
fundamentally an SVG problem, if you can find a way of creating SVG that
will do the job then Osmarender can be modified to generate the appropriate
SVG instructions.

You could try asking for some inspriation on the SVG irc channel (
irc.freenode.net #svg) people there sometimes have some good ideas.

80n





On 6/29/07, Lachlan Rogers <lachlan at rogers.name> wrote:
>
> Hi,
>
> I'm playing around with rendering cycling maps from the OSM data, and want
> to work a neat way to render cycle lanes on roads.
>
> There are many instances where the cycle lane is only one one side of the
> road, and there are some suggestions for tagging this situation at
> http://wiki.openstreetmap.org/index.php/Cycleway
>
> I am wondering if there is some way to render a stroke off-set slightly
> from the actual path.  If I could do this, then I could make something like
> a second "casing" for the road that was off-centre and so only appeared out
> from under the "core" of the road on one side.  Looking through the
> osmarender files, I've found a thing called "translation" that might be what
> I'm looking for (I think that the dy used for road names might be something
> similar to what I want).  Unfortunately I don't yet follow the syntax enough
> to implement my idea.
>
> Is my idea feasible?  How should I go about it?
>
> Thanks,
> Lachlan
>
> _______________________________________________
> dev mailing list
> dev at openstreetmap.org
> http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/dev/attachments/20070702/65a95eff/attachment.html>


More information about the dev mailing list