From a3090970ac582728c5ee32d47cb36347cb26c6c4 Mon Sep 17 00:00:00 2001 From: vcoppe Date: Fri, 4 Oct 2024 17:27:29 +0200 Subject: [PATCH] Update MTB.brf --- misc/profiles2/MTB.brf | 28 ++++++++++++++++++++-------- 1 file changed, 20 insertions(+), 8 deletions(-) diff --git a/misc/profiles2/MTB.brf b/misc/profiles2/MTB.brf index d532a9c..195152c 100644 --- a/misc/profiles2/MTB.brf +++ b/misc/profiles2/MTB.brf @@ -274,14 +274,26 @@ assign mtb_scale_penalty if not consider_smoothness then 0.0 else # Remember this is for trekking bikes, not MTB. There are MTB dedicated profiles. # http://wiki.openstreetmap.org/wiki/Key:mtb:scale -if mtb:scale= then 0.0 else if mtb:scale=0- then 0.0 else -if mtb:scale=0 then 0.0 else if mtb:scale=0+ then 0.3 else -if mtb:scale=1- then 0.7 else if mtb:scale=1 then 1.2 else -if mtb:scale=1+ then 1.8 else if mtb:scale=2- then 2.5 else -if mtb:scale=2 then 5.0 else if mtb:scale=2+ then 10.0 else -if mtb:scale=3 then 15.0 else -if mtb:scale=4|5|6 then 9000 - else 0.0 +if mtb:scale= then + if sac_scale=difficult_alpine_hiking then 9000 + else if sac_scale=demanding_alpine_hiking then 9000 + else if sac_scale=alpine_hiking then 15.0 + else if sac_scale=demanding_mountain_hiking then 10.0 + else if sac_scale=mountain_hiking then 5.0 + else if sac_scale=hiking|T1-hiking|yes then 0.0 + else 0.0 +else if mtb:scale=0- then 0.0 +else if mtb:scale=0 then 0.0 +else if mtb:scale=0+ then 0.3 +else if mtb:scale=1- then 0.7 +else if mtb:scale=1 then 1.2 +else if mtb:scale=1+ then 1.8 +else if mtb:scale=2- then 2.5 +else if mtb:scale=2 then 5.0 +else if mtb:scale=2+ then 10.0 +else if mtb:scale=3 then 15.0 +else if mtb:scale=4|5|6 then 9000 +else 0.0 assign roughness_penalty max smoothness_penalty max mtb_scale_penalty ( if ford=yes then ford_costfactor else 0 )