Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #57965
    cdavila
    Participant

    tagtransform.xml file has rule

    	<translation>
    		<name>add tag to identify mp relations in mapsforge for theme</name>
    		<description>add tag to identify mp relations in mapsforge for theme</description>
    			<match type="relation" >
    				<tag k="type" v="multipolygon"/>
    			</match>
    		<output>
    			<copy-all/>
    			<tag k="based_on_rel" v="mp"/>
    		</output>
    	</translation>

    If I understand correctly, this rule only adds based_on_rel=mp tag to type=multipolygon relations. It doesn’t affect way members of those relations. However, Elevate.xml file has rules of type

    <rule e="way" k="area|based_on_rel" v="yes|mp">

    which are applied to ways, not to relations. What’s the effect of those rules then?

    #57966
    Avatar photoTobias
    Keymaster

    Relations are not contained in the maps, only the inherited tags on ways that belong to the relation. A multipolygon relation is per definition an area, so those ways don’t contain area=yes. So for those rules to work this tag was created.

    Developer of Elevate mapstyle

    1 user thanked author for this post.
    #57967
    cdavila
    Participant

    I must be missing something obvious, sorry. It looks relation tags are not inherited by its way members. I have created a map from attached temp1.osm file with also attached tagmapping-test.xml and rendertheme-test.xml files and only the way with actual based_on_rel=mp tag is rendered

    #57970
    Avatar photoTobias
    Keymaster

    That’s a question for Christian and/or Emux. Most tags from relations aren’t included, that’s why Christian had to inherit e.g. hiking route relations to ways via scripts.

    Developer of Elevate mapstyle

    1 user thanked author for this post.
Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.