Skip to content

Commit

Permalink
Merge pull request #89 from geoadmin/feat_BGDIDIC-2907_geocat_links
Browse files Browse the repository at this point in the history
BGDIDIC-2907: fix geocat links - #minor
  • Loading branch information
ltclm authored Feb 21, 2025
2 parents 857fa08 + 005a1ed commit b5e47a5
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions app/templates/Layers.xml.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,14 @@
<ows:UpperCorner>11.47757 48.230651</ows:UpperCorner>
</ows:WGS84BoundingBox>
<ows:Identifier>{{ layer.id|e|trim }}</ows:Identifier>
<ows:Metadata xlink:href="https://www.geocat.ch/geonetwork/srv/ger/md.viewer#/full_view/{{ layer.id_geocat }}"/>
<ows:Metadata xlink:href="https://www.geocat.ch/geonetwork/srv/ger/catalog.search#/metadata/{{ layer.id_geocat }}"/>
<Style>
<ows:Title>{{ layer.short_description|d('-', true)|e|trim }}</ows:Title>
<ows:Identifier>{{ layer.id|d('-', true)|e|trim }}</ows:Identifier>
{% if layer.has_legend %}
<LegendURL format="image/png" xlink:href="{{ legend_base_url }}/{{ layer.id|e|trim }}_{{ language }}.png"/>
{% endif %}
</Style>
{# TODO CLEAN_UP remove this special case #}
{% if layer.id == 'ch.swisstopo.zeitreihen' and epsg == '21781' %}
<Format>image/png</Format>
{% endif %}
{% for format in layer.formats %}
<Format>image/{{ format }}</Format>
{% endfor %}
Expand Down Expand Up @@ -50,4 +46,4 @@
{% endfor %}
</Layer>
{% endfor %}
{# main loop #}
{# main loop #}

0 comments on commit b5e47a5

Please sign in to comment.