From aba701cfb26a9432cd306ba832a5357b0705ae01 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Wed, 27 Mar 2019 22:26:17 +0100 Subject: Sheet: add a display projection for coordinates --- .../templates/ishtar/blocks/sheet_coordinates.html | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'ishtar_common/templates') diff --git a/ishtar_common/templates/ishtar/blocks/sheet_coordinates.html b/ishtar_common/templates/ishtar/blocks/sheet_coordinates.html index ff0586515..dbcecef8c 100644 --- a/ishtar_common/templates/ishtar/blocks/sheet_coordinates.html +++ b/ishtar_common/templates/ishtar/blocks/sheet_coordinates.html @@ -3,16 +3,17 @@
{% trans "Coordinates" %}
- {% trans "X:"%} {{geo_item.x|default_if_none:"-"}} + {% with coordinates=geo_item.display_coordinates %} + {% trans "X:"%} {{coordinates.0|default_if_none:"-"}} {% if geo_item.estimated_error_x %} ({% trans "error:" %} {{geo_item.estimated_error_x}}){% endif %}, - {% trans "Y:"%} {{geo_item.y|default_if_none:"-"}}, + {% trans "Y:"%} {{coordinates.1|default_if_none:"-"}} {% if geo_item.estimated_error_y %} ({% trans "error:" %} {{geo_item.estimated_error_y}}){% endif %}, + {% endwith %} {% trans "Z:"%} {{geo_item.z|default_if_none:"-"}} {% if geo_item.estimated_error_z %} ({% trans "error:" %} {{geo_item.estimated_error_z}}){% endif %} - {% if geo_item.spatial_reference_system %} - – {{geo_item.spatial_reference_system.label}}{% if geo_item.spatial_reference_system.srid %} - - {% trans "SRID"%} {{geo_item.spatial_reference_system.srid}}{% endif %} - {% endif %} + {% with srs=geo_item.display_spatial_reference_system %} + {% if srs %} – {{srs.label}} - {% trans "SRID"%} {{srs.srid}} {% endif %} + {% endwith %}
{% if geo_item.most_precise_geo == 'point' %} -- cgit v1.2.3