{% load i18n mapentity_tags %} {% if object.ispoint %} {% trans "Elevation" %} {{ object.min_elevation|floatformat }}m {% else %} {% trans "Length" %} {# ``length`` attribute comes from AltimetryMixin and triggers #} ↝ {{ object.length|floatformat }}m {# ``geom.length`` is 2D and is computed by GEOS #} (→ {{ object.geom.length|floatformat }}m) {% trans "Slope" %} {{ object.descent|floatformat }}m +{{ object.ascent|floatformat }}m ({{ object.slope|floatformat }}) {% trans "Elevation" %} Min: {{ object.min_elevation|floatformat }}m, Max: {{ object.max_elevation|floatformat }}m {% endif %}