Betrachte 6 Beiträge - 1 bis 6 (von insgesamt 6)
  • Autor
    Beiträge
  • #41690
    Avatar-FotoJohnPercy
    Teilnehmer

    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.6930

    Voluntary and Velocity themes - https://voluntary.nichesite.org

    #41700
    Avatar-FotoChristianK
    Administrator

    Hi 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.

    #41703
    Avatar-FotoJohnPercy
    Teilnehmer

    On 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

    #41705
    Avatar-FotoChristianK
    Administrator

    Well, 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
    #41708
    Avatar-FotoJohnPercy
    Teilnehmer

    That sounds a good idea

    Voluntary and Velocity themes - https://voluntary.nichesite.org

    #41729
    Avatar-FotoChristianK
    Administrator

    Ok 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
Betrachte 6 Beiträge - 1 bis 6 (von insgesamt 6)
  • Sie müssen angemeldet sein, um zu diesem Thema eine Antwort verfassen zu können.