diff options
| 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 |
| commit | 0c3b9124dc790efa6a5f7e3883d7a3e8a5708389 (patch) | |
| tree | 2067a3d383585047b046804bc084d4a23ee6c5a3 /ishtar_common/templates | |
| parent | 7a41c2e80b019b59bd6f8f32f860d864e0a56cfa (diff) | |
| download | Ishtar-0c3b9124dc790efa6a5f7e3883d7a3e8a5708389.tar.bz2 Ishtar-0c3b9124dc790efa6a5f7e3883d7a3e8a5708389.zip | |
Sheet: add a display projection for coordinates
Diffstat (limited to 'ishtar_common/templates')
| -rw-r--r-- | ishtar_common/templates/ishtar/blocks/sheet_coordinates.html | 13 |
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 %} - – {{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 %} </dd> </dl> {% if geo_item.most_precise_geo == 'point' %} |
