- AutorBeiträge
- Dezember 21, 2021 um 11:25 Uhr #46414settlerTeilnehmer
Hello,
please tell, how can I show all bike paths with OSM tag „mtb = yes“ in my theme?Dezember 22, 2021 um 15:59 Uhr #46435ChristianKAdministratorHi,
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
Dezember 22, 2021 um 19:12 Uhr #46440TobiasAdministratormtb=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
Dezember 23, 2021 um 11:23 Uhr #46445settlerTeilnehmerHello,
might it be possible use tag „mtb:scale:imba = 0|1|2|3|4“ in theme?
This is needed for the bike park.Dezember 23, 2021 um 12:06 Uhr #46447ChristianKAdministratorWell, 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_4Dezember 23, 2021 um 12:09 Uhr #46449settlerTeilnehmerThanks!
Dezember 23, 2021 um 16:09 Uhr #46460ChristianKAdministratorBevor 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 Teilnehmer(n) gefällt dieser Beitrag
August 1, 2024 um 10:00 Uhr #56266tartiflette74TeilnehmerHi,
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 um 10:36 Uhr #56268TobiasAdministratorThis 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 um 11:56 Uhr #56269tartiflette74TeilnehmerWhat 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 um 19:02 Uhr #56278TobiasAdministratorI 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 Teilnehmer(n) gefällt dieser Beitrag
- AutorBeiträge
- Sie müssen angemeldet sein, um zu diesem Thema eine Antwort verfassen zu können.