- AutorBeiträge
- März 26, 2015 um 10:50 Uhr #4376JohnPercyTeilnehmer
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
http://www.openstreetmap.org/way/94069761Michael Faraday Memorial
http://www.openstreetmap.org/way/24397522They 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=“http://mapsforge.org/renderTheme“ xmlns:xsi=“http://www.w3.org/2001/XMLSchema-instance“
xsi:schemaLocation=“http://mapsforge.org/renderTheme ../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>
<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″ />
</rule>
<!– 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″ />
</rule>
</rendertheme>Is it possible that the erroneous behaviour is caused by tag mapping or transformation in OAM?
Voluntary and Velocity themes - https://voluntary.nichesite.org
März 26, 2015 um 18:45 Uhr #4377JohnPercyTeilnehmerOK, 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.
Voluntary and Velocity themes - https://voluntary.nichesite.org
März 26, 2015 um 18:59 Uhr #4378TobiasAdministratorHi John,
yes, I just wanted to tell you but you were faster… the old equivalence bug in new clothes, means equivalent-value.
Best regards,
TobiasDeveloper of Elevate mapstyle
- AutorBeiträge
- Sie müssen angemeldet sein, um zu diesem Thema eine Antwort verfassen zu können.