Tagged: , , ,

Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #46414
    settler
    Participant

    Hello,
    please tell, how can I show all bike paths with OSM tag “mtb = yes” in my theme?

    #46435
    Avatar photoChristianK
    Keymaster

    Hi,

    MTB=YES is not included in the tag-mapping cause IMO it does’nt make much sense.
    The MTB-Routes are tagged as relstions and the tags from the relations are inherited to the ways.
    Ususaly there is not MTB=yes on these routes but a valid NETWORK= tag.

    In OAM the NETWORK-tag for MTB Routes is

    MTBNETWORK=imn|nmn|rmn|lmn|omn

    #46440
    Avatar photoTobias
    Keymaster

    mtb=yes is also a tag which is not defined in the wiki or else.
    It’s probably meant to be similar to access tags like bicycle=yes or foot=yes. But as mtb are bicyles and there’s no legal difference if one can use a bicycle or a mtb, a separate access tag for mtb makes no sense.
    Access tags only mean that you are allowed to use the way by these means, not if you are able to – it’s perfectly legal to use a road racing bike on a mtb trail, although it’s not recommended 😉

    Developer of Elevate mapstyle

    #46445
    settler
    Participant

    Hello,
    might it be possible use tag “mtb:scale:imba = 0|1|2|3|4” in theme?
    This is needed for the bike park.

    #46447
    Avatar photoChristianK
    Keymaster

    Well, we had the IMBA in tag-mapping.
    However, we had to remove it cause of the 15-Tag limit in Mapsforge.
    I will give this another try.

    If its tagged only in bike-parks it should be OK.
    If its silly tagged on ordinary track/paths it will crash the mapwriter.

    … lets see …

    mtb_scale_imba mtba_0
    mtb_scale_imba mtba_1
    mtb_scale_imba mtba_2
    mtb_scale_imba mtba_3
    mtb_scale_imba mtba_4

    #46449
    settler
    Participant

    Thanks!

    #46460
    Avatar photoChristianK
    Keymaster

    Bevor I released the V5 maps I wrote a tag_counter for routes and therefore its not _that_ complicated to check if a way runs out of tag-space.

    Result: no way in ALPS exeeded 15 tags with the IMBA, so:

    
    For maps from 23rd of  Dezember 2021:
    ## Added  Bike-Park tags:
    mtb:scale:imba = 0,1,2,3,4
    Transformed to :
    mtb_scale_imba=mtba_0|mtba_1|mtba_2|mtba_3|mtba_4
    

    However: This tag is not in Elevate Theme!

    1 user thanked author for this post.
    #56266
    tartiflette74
    Participant

    Hi,
    It seems that the mtb_scale_imba tag is added only if there is no mtb:scale on the same way; is this intended? If so, is this documented, or can this be deduced from TagTransform etc?
    E.g. it is set for http://www.openstreetmap.org/way/436742569 (not sure this way is correctly tagged in OSM, but this is another issue…), but not for http://www.openstreetmap.org/way/394640852
    Thanks

    #56268
    Avatar photoTobias
    Keymaster

    This might be the case here:
    https://www.openandromaps.org/en/oam-forums/topic/cycleway-gone-in-april-nl#post-47780

    It’s not just the number of tags that are in OSM, but also those of relations they are part of.

    Developer of Elevate mapstyle

    #56269
    tartiflette74
    Participant

    What about way/550884409 ? No relation, only a few tags, however it does not seem to get the mtb_scale_imba tag. It’s OK if it is intended (I will update my theme with this in mind), but maybe it is not?

    #56278
    Avatar photoTobias
    Keymaster

    I think this part of tag transform only adds imba if no mtb:scale is present:

    <name>mtb:scale:imba to mtb:scale</name>
    <description>mtb:scale:imba to mtb:scale</description>
    <match mode="and" type="way|relation">
    <match mode="or" type="way">
    <tag k="mtb:scale:imba" match_id="imba0" v="0"/>
    <tag k="mtb:scale:imba" match_id="imba1" v="1"/>
    <tag k="mtb:scale:imba" match_id="imba2" v="2"/>
    <tag k="mtb:scale:imba" match_id="imba3" v="3"/>
    <tag k="mtb:scale:imba" match_id="imba4" v="4"/>
    </match>
    <notag k="mtb_scale" v=".*"/>
    </match>
    <output>
    <copy-unmatched/>
    <tag k="mtb_scale_imba" from_match="imba0" v="mtba_0"/>
    <tag k="mtb_scale_imba" from_match="imba1" v="mtba_1"/>
    <tag k="mtb_scale_imba" from_match="imba2" v="mtba_2"/>
    <tag k="mtb_scale_imba" from_match="imba3" v="mtba_3"/>
    <tag k="mtb_scale_imba" from_match="imba4" v="mtba_4"/>
    </output>
    

    Developer of Elevate mapstyle

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