From 2198d9811206aca0e43c4dfa697ff1e63a2c0a85 Mon Sep 17 00:00:00 2001 From: Nathan Hartley Date: Mon, 27 Feb 2023 16:34:13 -0500 Subject: [PATCH] Rounding height, rather than truncating. --- paddling_hazards.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paddling_hazards.yaml b/paddling_hazards.yaml index 8da60f8..4c80808 100644 --- a/paddling_hazards.yaml +++ b/paddling_hazards.yaml @@ -16,7 +16,7 @@ feature: {% set value = '' %} {% elseif attribute(tags, 'seamark:bridge:clearance_height') %} {% set key = 'seamark:bridge:clearance_height' %} - {% set value = Math.trunc(attribute(tags, 'seamark:bridge:clearance_height')) %} + {% set value = attribute(tags, 'seamark:bridge:clearance_height') | round %} {% if value > 4 %} {% set value = 4 %} {% endif %}