- AuthorPosts
- February 3, 2021 at 16:14 #41690JohnPercyParticipant
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
February 3, 2021 at 16:49 #41700ChristianKKeymasterHi 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.
February 3, 2021 at 19:39 #41703JohnPercyParticipantOn 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
February 3, 2021 at 20:16 #41705ChristianKKeymasterWell, 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 user thanked author for this post.
February 3, 2021 at 20:19 #41708JohnPercyParticipantThat sounds a good idea
Voluntary and Velocity themes - https://voluntary.nichesite.org
February 4, 2021 at 16:13 #41729ChristianKKeymasterOk 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 user thanked author for this post.
- AuthorPosts
- You must be logged in to reply to this topic.