NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum

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; }
        .wheelchair-yes {
        fill: green;
        stroke: #4D5D73;
        stroke-width: 1px;
        }

        .wheelchair-limited {
        fill: yellow;
        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%C3%BCppengesicht's gravatar image

Dreckschüppe...
15112
accept rate: 0%

edited 26 Jan '11, 14:11


-1

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>

 .wheelchair-no {
  fill: none;
  stroke: #ff0000;
  stroke-width: 1px;
  stroke-linecap: round;
        }

.wheelchair-yes {
  fill: none;
  stroke: #00ff00;
  stroke-width: 1px;
  stroke-linecap: round;
        }

.wheelchair-limited {
  fill: none;
  stroke: #ffff00;
  stroke-width: 1px;
  stroke-linecap: round;
 }
permanent link

answered 26 Jan '11, 15:41

Drecksch%C3%BCppengesicht's gravatar image

Dreckschüppe...
15112
accept rate: 0%

I would use something like this:

<rule e="way" k="highway" v="*">
    <rule e="way" k="wheelchair" v="no" closed="yes">
            <area class="wheelchair-no-area">
    </rule>
    <rule e="way" k="wheelchair" v="no" closed="no">
            <line class="wheelchair-no" smart-linecap="no"/>
    </rule>

    <rule e="way" k="wheelchair" v="yes" closed="yes">
            <area class="wheelchair-yes-area">
    </rule>
    <rule e="way" k="wheelchair" v="yes" closed="no">
            <line class="wheelchair-yes" smart-linecap="no"/>
    </rule>

    <rule e="way" k="wheelchair" v="limited" closed="yes">
            <line class="wheelchair-limited-area">
    </rule>
    <rule e="way" k="wheelchair" v="limited" closed="no">
            <line class="wheelchair-limited" smart-linecap="no"/>
    </rule>
</rule>

.wheelchair-no-area {
    fill: #ff0000;
}

.wheelchair-yes-area {
    fill: #00ff00;
}

.wheelchair-limited-area {
    fill: #ffff00;
}

.wheelchair-no {
    fill: none;
    stroke: #ff0000;
    stroke-width: 1px;
    stroke-linecap: round;
}

.wheelchair-yes {
    fill: none;
    stroke: #00ff00;
    stroke-width: 1px;
    stroke-linecap: round;
}

.wheelchair-limited {
    fill: none;
    stroke: #ffff00;
    stroke-width: 1px;
    stroke-linecap: round;
}

But unless you say what you exactly want to accieve and what your problem is, it's hard to give helpful advice.

permanent link

answered 27 Jan '11, 10:12

petschge's gravatar image

petschge
8.3k217398
accept rate: 21%

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:

  • green (yes)
  • red (no)
  • yellow (limited)

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

permanent link

answered 28 Jan '11, 14:30

muebau's gravatar image

muebau
1
accept rate: 0%

edited 28 Jan '11, 14:31

Turns out that it wasn't only an osmarender problem but a problem with rsvg / eye of gnome.

permanent link

answered 28 Jan '11, 16:55

petschge's gravatar image

petschge
8.3k217398
accept rate: 21%

-4

Hi,

is your map published? Where?

permanent link

answered 09 Feb '11, 12:36

Kartograefin's gravatar image

Kartograefin
592178
accept rate: 0%

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...
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×440
×65
×12
×4

question asked: 26 Jan '11, 13:39

question was seen: 5,914 times

last updated: 09 Feb '11, 12:59

NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum