diff options
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' %} |