This project has moved and is read-only. 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:

Many thanks in advance for your help!

Best regards,
Apr 24, 2014 at 8:44 PM
Edited Apr 24, 2014 at 8:47 PM
From the ResourceURL entries in the capabilities file, like{Style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}.jpeg
you can construct the UriFormat for the TileSource like this:{z}/{y}/{x}.jpeg
So a TileLayer declaration in XAML might look like this:
<map:TileLayer SourceName="" Description="Geoland Basemap" MaxZoomLevel="19"
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,
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...
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. is the only one I know. I understand that the feature won't be that useful to others ;)