Error while reading wmts.geo.admin.ch

Started by maerki, April 11, 2021, 11:35:02 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

maerki

Intro
As of first of march, switzerland has given its very nice and famous maps in the public domain. Also a very powerful WMTS service is available.
However, orux maps has problem to process the 'Time' dimension. It would be great if this could be fixed as this would open access to the many layers of the wonderful swiss maps.
If I may help in fixing this problem, please tell me - I would be glad to assist you!


Summary

The Swiss WMTS service uses a <Dimension> called Time. Sadly, this prevents orux to open the map.


How to reproduce

Orux v8.1.6, german

Start oruxmaps -> Add mapp WMTS -> Add url -> https://wmts.geo.admin.ch/1.0.0/WMTSCapabilities.xml
This error message is displayed:
Syntax Error in regexp pattern near \{(?i)time}

Playing around with WMTSCapabilities.xml

This works: http://www.maerki.com/hans/download/oruxtest/wmts_a_ok.xml
The layer Wanderwege (=Hiketrails) may be selected and is desplayed correctly.

This gives the error as above: http://www.maerki.com/hans/download/oruxtest/wmts_b_error.xml
This error message is displayed:
Syntax Error in regexp pattern near \{(?i)time}

Difference of both xml-files

wmts_b_error.xml contains the red part in the snipped below, wmts_a_ok.xml not

<Layer>
  <ows:Title>Wanderwege</ows:Title>
  ...
  <Dimension>
    <ows:Identifier>Time</ows:Identifier>
    <Default>current</Default>
    <Value>current</Value>
  </Dimension>

  <ResourceURL format="image/png" resourceType="tile" template="https://wmts.geo.admin.ch/1.0.0/ch.swisstopo.swisstlm3d-wanderwege/default/{Time}/21781/{TileMatrix}/{TileRow}/{TileCol}.png"/>
</Layer>


Background about Time. You may select maps from 50 or 100 years ago to see how the villages have grown in the meantime.