summaryrefslogtreecommitdiff
path: root/ishtar_common/templates
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2019-03-27 22:26:17 +0100
committerÉtienne Loks <etienne.loks@iggdrasil.net>2019-06-17 13:21:27 +0200
commitaba701cfb26a9432cd306ba832a5357b0705ae01 (patch)
tree2067a3d383585047b046804bc084d4a23ee6c5a3 /ishtar_common/templates
parent4c9b8bc864e9138a31303a9d0744c853e431f37d (diff)
downloadIshtar-aba701cfb26a9432cd306ba832a5357b0705ae01.tar.bz2
Ishtar-aba701cfb26a9432cd306ba832a5357b0705ae01.zip
Sheet: add a display projection for coordinates
Diffstat (limited to 'ishtar_common/templates')
-rw-r--r--ishtar_common/templates/ishtar/blocks/sheet_coordinates.html13
1 files changed, 7 insertions, 6 deletions
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 @@
<dl class="col-12">
<dt>{% trans "Coordinates" %}</dt>
<dd>
- {% 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 %}
- &ndash; {{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 %} &ndash; {{srs.label}} - {% trans "SRID"%} {{srs.srid}} {% endif %}
+ {% endwith %}
</dd>
</dl>
{% if geo_item.most_precise_geo == 'point' %}