- AutorBeiträge
- Februar 3, 2021 um 16:14 Uhr #41690JohnPercyTeilnehmer
It’s it possible that the published tag mapping is not the one you are using?
I’m trying to display large solar power arrays but not small solar panels on buildings.
I’ve first of all excluded solar power mapped on a building. I also assume that power=plant and power=station are worth displaying and power=generator is not. That’s a big assumption but I want to try it out as it fits with inspecting the mapped locations.
The problem is that areas mapped as power=plant are displaying as if they were mapped power=generator. It makes me look for a tag transform, or an unwanted equivalence in the tag mapping. I’ve found nothing suspect however in the tag transform or tag mapping files.
Here’s one such location: https://www.openstreetmap.org/relation/9455352 but there are others which are not relations
https://www.openstreetmap.org/way/662532040#map=15/52.2810/-0.6930Voluntary and Velocity themes - https://voluntary.nichesite.org
Februar 3, 2021 um 16:49 Uhr #41700ChristianKAdministratorHi John,
No idea what happens here.
The used TagMapping ist Ok (just checked in scripts)
Values are unique , except for „staton“ (has no relevance in the two examples)In both examples power=plant should be the match.
Februar 3, 2021 um 19:39 Uhr #41703JohnPercyTeilnehmerOn closer examination, I found there is some double mapping here: an area tagged power=generator and generator:source=photovoltaic and another, almost identical, area tagged power=plant and plant:source=photovoltaic.
The tag generator: source requires power=generator, and the tag plant:source requires power=plant. As as you say, station is not relevant here as its equivalent tag substation is not used for places that are sourced of power.
You don’t include plant:source in your tag mapping, so I can’t test for solar powered plants. Would it be worthwhile including plant: source? It would enable power=plant to be mapped appropriately.Voluntary and Velocity themes - https://voluntary.nichesite.org
Februar 3, 2021 um 20:16 Uhr #41705ChristianKAdministratorWell, I have generator:source in TagMapping.
I could TagTransform values from plant:source to generator:source.
This would add the plant:source tags without changing existing themes.1 Teilnehmer(n) gefällt dieser Beitrag
Februar 3, 2021 um 20:19 Uhr #41708JohnPercyTeilnehmerThat sounds a good idea
Voluntary and Velocity themes - https://voluntary.nichesite.org
Februar 4, 2021 um 16:13 Uhr #41729ChristianKAdministratorOk her it is:
<translation> <name>plant:source 2 generator:source</name> <description>plant:source 2 generator:source</description> <match> <match mode="or" > <tag k="plant:source" match_id="gensrc" v="(.*)"/> </match> <notag k="generator:source" v=".*"/> </match> <output> <copy-all/> <tag k="generator:source" from_match="gensrc" v="{1}"/> </output> </translation>
New February UK Maps should include this Transform…
1 Teilnehmer(n) gefällt dieser Beitrag
- AutorBeiträge
- Sie müssen angemeldet sein, um zu diesem Thema eine Antwort verfassen zu können.