This project has moved. For the latest updates, please go here.

Create TileLayer TileSource from WMTS capabilities XML

Apr 24, 2014 at 2:55 PM
Hi there,

I'm trying to figure out the URI for the TileLayer TileSource. I have a WMTS capabilities file. Is there any converter for that?

Here is the link to the capabilites XML:
http://maps.wien.gv.at/basemap/1.0.0/WMTSCapabilities.xml

Many thanks in advance for your help!

Best regards,
Andreas
Coordinator
Apr 24, 2014 at 8:44 PM
Edited Apr 24, 2014 at 8:47 PM
From the ResourceURL entries in the capabilities file, like
http://maps.wien.gv.at/basemap/geolandbasemap/{Style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}.jpeg
you can construct the UriFormat for the TileSource like this:
http://maps.wien.gv.at/basemap/geolandbasemap/normal/google3857/{z}/{y}/{x}.jpeg
So a TileLayer declaration in XAML might look like this:
<map:TileLayer SourceName="Basemap.at" Description="Geoland Basemap" MaxZoomLevel="19"
    TileSource="http://maps.wien.gv.at/basemap/geolandbasemap/normal/google3857/{z}/{y}/{x}.jpeg"/>
And it works :-)
Apr 25, 2014 at 7:38 AM
Thanks for your fast answer!

Maybe you could add a TileLayer that understands WMTS capabilities XML files in the future. That would be much easier to configure.

Best regards,
Andreas
Coordinator
Apr 25, 2014 at 8:43 AM
I was already thinking about something like that for WMS and WMTS, but never had a real use case. Until now...
Coordinator
May 1, 2014 at 7:24 PM
After some searching on the www for publicly available WMTS servers, I have to admit that I couldn't find many. The only useful one was the one you mention in your first post, because it is the only one (that I found) that implements an OpenStreetMap compatible tiling scheme, as required by the map control.

Do you perhaps know of any other available WMTS servers against which I could test a possible WMTS TileLayer implementation?
May 9, 2014 at 7:38 AM
I'm sorry for the late reply.

Basemap.at is the only one I know. I understand that the feature won't be that useful to others ;)