{% for region in resource.regions %}
{% if region.json.type == "bbox" %}
{% elif region.json.type == "polygon" %}
{% elif region.json.type == "polyline" %}
{% elif region.json.type == "point" %}
{% endif %}
{% endfor %}
{% set licences = resource.licences | map(attribute="licence") | list %}
{% set contains = resource.regions | map(attribute="object_id") | set | sort | select | list %}
Type{{ resource.nature.id }}File format{{ resource.file_format }}Size{{ size[0] }}×{{ size[1] }}Number of regions{{ resource.regions | length }}Number of labelled regions{{ resource.regions | selectattr("object_id") | list | length }}
Contains objects: {{ contains | join(", ") }}
Available under:
{% for licence in licences %}
{{ licence.title }}
{% if not loop.last %}, {% endif %}
{% endfor %}
{% for licence in licences %}
{% if licence.logo_url %}
{% if licence.info_url %}
{# An equivalent link already exists, only one is focusable #}
{% else %}
{% endif %}
{% endif %}
{% endfor %}
{% endblock %}