- AuthorPosts
- December 21, 2021 at 11:25 #46414settlerParticipant
Hello,
please tell, how can I show all bike paths with OSM tag “mtb = yes” in my theme?December 22, 2021 at 15:59 #46435ChristianKKeymasterHi,
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
December 22, 2021 at 19:12 #46440TobiasKeymastermtb=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
December 23, 2021 at 11:23 #46445settlerParticipantHello,
might it be possible use tag “mtb:scale:imba = 0|1|2|3|4” in theme?
This is needed for the bike park.December 23, 2021 at 12:06 #46447ChristianKKeymasterWell, 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_4December 23, 2021 at 12:09 #46449settlerParticipantThanks!
December 23, 2021 at 16:09 #46460ChristianKKeymasterBevor 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.
August 1, 2024 at 10:00 #56266tartiflette74ParticipantHi,
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
ThanksAugust 1, 2024 at 10:36 #56268TobiasKeymasterThis might be the case here:
https://www.openandromaps.org/en/oam-forums/topic/cycleway-gone-in-april-nl#post-47780It’s not just the number of tags that are in OSM, but also those of relations they are part of.
Developer of Elevate mapstyle
August 1, 2024 at 11:56 #56269tartiflette74ParticipantWhat 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?
August 1, 2024 at 19:02 #56278TobiasKeymasterI 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.
- AuthorPosts
- You must be logged in to reply to this topic.