Hello, I work as part of a school project on a accessibility map for people that use a wheelchair in Unna (small German town) http://www.openstreetmap.org/?lat=51.53525&lon=7.68865&zoom=16&layers=M . I need to extend the capabilties of osmarender. The goal is to render streets/ways etc. with the tag wheelchair in red/yellow/green in dependence to its value (no/limited/yes). I found the way to do so is to customize the rules and styles: My First try was something like: rule e="way" k="highway" v="*"> rule e="way" k="wheelchair" v="no"> line class="wheelchair-no"/> /rule> rule e="way" k="wheelchair" v="yes"> line class="wheelchair-yes"/> /rule> rule e="way" k="wheelchair" v="limited"> line class="wheelchair-limited"/> /rule> /rule>.wheelchair-no { fill: red; stroke: #4D5D73; stroke-width: 1px; }
If you have an idea how to get it work i would be pleased. OSM: Dreckschüppengesicht asked 26 Jan '11, 13:39 Dreckschüppe... |
I would use something like this:
But unless you say what you exactly want to accieve and what your problem is, it's hard to give helpful advice. answered 27 Jan '11, 10:12 petschge |
Hi, thanks for the answere. The main goal is a simple map of the inner area of Unna (Germany). We did tag nearly every street in the inner circle with wheelchair=yes/no/limited. In the target map these streets should be redered in:
At first it worked pretty fine (first post). On a clean checkout of osmareder we did add this few rules and got a more or less nice map. Now it doesn't work any more. I changed the rules to yours and again nothing changed. In JOSM as I can see there is no problem with the data. BTW: What is the fastest way to get the map rendered? If there would be a possibility to parallelize it I could use up to 8 64 bit multi core desktops for one a few nights. bye muebau answered 28 Jan '11, 14:30 muebau |
Turns out that it wasn't only an osmarender problem but a problem with rsvg / eye of gnome. answered 28 Jan '11, 16:55 petschge |
I found a partitial solution: rule e="way" k="highway" v="*"> rule e="way" k="wheelchair" v="no"> line class="wheelchair-no" smart-linecap="no"/> /rule> rule e="way" k="wheelchair" v="yes"> line class="wheelchair-yes" smart-linecap="no"/> /rule> rule e="way" k="wheelchair" v="limited"> line class="wheelchair-limited" smart-linecap="no"/> /rule> /rule>
answered 26 Jan '11, 15:41 Dreckschüppe... |
Hi, is your map published? Where? answered 09 Feb '11, 12:36 Kartograefin 2
If you want to get extra information from the questioner, you need to do it in a comment to the original question, rather than an answer.
(09 Feb '11, 12:59)
Jonathan Ben...
|