[OSM-dev] tag osmarender:namedirection necessary?
Jochen Topf
jochen at remote.org
Tue Jan 9 13:24:49 GMT 2007
On Mon, Jan 08, 2007 at 09:08:14PM +0100, Johann Gail wrote:
> > This is not always the case. For example, with very winding roads.
> >
> On very winding roads, how would you orientate the labeling? Part of it has always the wrong orientation.
>
> Nevertheless, I've done a small improvement of my scripts. If you insert the folowing code, then the direction is selected automatically. If the selection was bad, then you can inverted the automatic selection with the tag naming_direction.
>
> <xsl:when test='(tag[@k="name_direction"]/@v="-1" or tag[@k="osmarender:nameDirection"]/@v="-1")
> != (key("nodeById",key("segmentById",seg[1]/@id)/@from)/@lon < key("nodeById",key("segmentById",seg[last()]/@id)/@to)/@lon)'>
>
Looks good to me! I have added this to the Osmarender4 version I just
uploaded. (See seperate announcement.)
Jochen
--
Jochen Topf jochen at remote.org http://www.remote.org/jochen/ +49-721-388298
More information about the dev
mailing list