[OSM-dev] Osmarender feature on only one side of road
Frederik Ramm
frederik at remote.org
Mon Jul 2 11:17:31 BST 2007
Hi,
> It seems to me you should be able to use viewport transformations to
> do this. If you draw a line:
>
> <line x1="0" y1="1.5" x2="400" y2="1.5" />
>
> Then this will draw a line 50 pixels offset:
>
> <g transform="translate(0,50)">
> <line x1="0" y1="1.5" x2="400" y2="1.5" />
> </g>
But wouldn't you have to individually compute the offset for every
line segment using trigonometric functions if you want a constant
distance between the original path and the offset path?
Bye
Frederik
--
Frederik Ramm ## eMail frederik at remote.org ## N49°00.09' E008°23.33'
More information about the dev
mailing list