Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • #4376

    I have identified some buildings in London which are both vents for the Underground and electric substations for the Underground

    For example:
    Redcross Way Substation

    Michael Faraday Memorial

    They both contain building=”yes” and either power=”substation” or power=”sub_station”

    Using the Great Britain map from OAM they both match to building=station using Atlas or Cruiser but not with Locus, nor with the Greater London map from Mapsforge. (As far as I understand, they ought to match to building-substation or building-sub_station, even though that is not desired behaviour either. However that is not the issue here.)

    My problem arose because I got incorrect matches in Atlas/Cruiser for a match of the form <rule e=”way” k=”railway|building” v=”station|train_station”> in my Voluntary UK theme. I can workaround this by splitting into two tests.

    I used a test theme which shows that these buildings match as stations:
    <?xml version=”1.0″ encoding=”UTF-8″?>
    <rendertheme xmlns=”; xmlns:xsi=”;
    xsi:schemaLocation=” ../renderTheme.xsd” version=”4″ map-background=”#f8f8f8″>
    <rule e=”any” k=”building” v=”sub_station”>
    <symbol id=”substation” src=”file:svg/power_coal.svg” />
    <caption symbol-id=”substation” position=”below” k=”name” font-style=”bold” font-size=”10″ fill=”#7F7F02″ stroke=”#C0FFFFFF” stroke-width=”2.0″ />
    <rule e=”any” k=”building” v=”substation”>
    <symbol id=”substation2″ src=”file:svg/power_coal.svg” />
    <caption symbol-id=”substation2″ position=”below” k=”name” font-style=”bold” font-size=”10″ fill=”#7F7F02″ stroke=”#C0FFFFFF” stroke-width=”2.0″ />
    <!– this matches –>
    <rule e=”any” k=”building” v=”station”>
    <symbol id=”trainstation0″ src=”file:svg/trainstation0.svg” />
    <caption symbol-id=”trainstation0″ position=”below” k=”name” font-style=”bold” font-size=”10″ fill=”#CA1212″ stroke=”#C0FFFFFF” stroke-width=”2.0″ />

    Is it possible that the erroneous behaviour is caused by tag mapping or transformation in OAM?


    OK, I’ve discovered that the tag mapping for OpenAndroMaps treats power=”substation” and power=”sub_station” as equivalent to power=”station”, which goes a long way to explaining what I was finding.


    Hi John,
    yes, I just wanted to tell you but you were faster… the old equivalence bug in new clothes, means equivalent-value.
    Best regards,

    Developer of Elevate mapstyle

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.