[Talk-de] Flußbreitenrendering in osmarender repariert!

Sven Geggus lists at fuchsschwanzdomain.de
Mi Jan 28 19:56:27 UTC 2009


Hallo,

sieht so aus, als ob mein Flußbreitenpatch kürzlich einiges
Unverständnis ausgelöst hat :(

Ich habe gerade die Werte für minimum-width und maximum-width wieder
auf ihre ursprünglichen Werte geändert.

Es ergibt überhaupt gar keinen Sinn dieses Variablen dafür zu
verwenden das Rendering irgendwie schöner zu machen oder sowas. Das
sind reale Maximal und Minimalbreiten in Metern.

Wenn man die Flüsse etwas überzeichnen oder unterzeichnen möchte oder
eventuell auch casing und core verschieden breit rendern möchte kann
man die variable width-scale-factor verwenden.

Hier nochmal die "Dokumentation" dess Flußbreitenpatch aus der
Commit-Message r8970 von 2008-07-13.

--schnipp--
Honor a width tag for ways in Osmarender if activated in the rules
file.

Credits go to Christian Koerner for implementing the changes in
osmarender.xsl

Widths needs to be given in meters (I know, metric is for idiots...).

This has been developed with waterways in mind, but might
also be useful for other kinds of ways.

Currently this feature is activated for rivers, canals, streams
and drains in zoom-levels 15-17.

The change adds the following attributes to the osmarender
line directive:

honor-width:
If set to "yes" a width tag in osm data is honored.

minimum-width/maximum-width:
width-tag needs to be in the range given by these values.
If the value of width is less than minimum-width, minimum-width
is used intead.
If the value of width is greater than maximum-width, maximum-width
is used intead.

width-scale-factor:
This allows to apply generalization of the map by scaling the
given width tag to some "false" values.
It is also possible to use this factor to achieve different widths
in line casings and core.
--schnapp--

Gruss

Sven

-- 
TCP/IP: telecommunication protocol for imbibing pilsners
	                             (Man-page uubp(1C) on Debian/GNU Linux)

/me is giggls at ircnet, http://sven.gegg.us/ on the Web




Mehr Informationen über die Mailingliste Talk-de