I was wondering if there is a library which I can use to retrieve TileMatrix/Tile information from a WMTS Capabilities document. I have been trying to use geotools but it seems as though it does not support WMTS (just WMS).

  • @iant Thanks for the link. Tried this out but could not get it to work. Now exploring the use of XMLBeans to parse data from a wmts capabilities document. – k9ty Oct 30 '13 at 9:53
  • 1
    There is some (initial) support for WMTS in owslib - python, but possibly you could use it as a model or via Jython? – BradHards Nov 7 '13 at 5:51
  • @BradHards Thanks for that! Seems quite useful, although I went down another route, I will give this a try :) – k9ty Nov 13 '13 at 11:45
  • Could you add your solution as an Answer (below) and close this out? – BradHards Nov 13 '13 at 22:49

GeoTools now has a WMTS module that will handle this (and more) for you:

The client code is fairly slick in that it takes care of version negotiation (inheriting functionalities from AbstractOpenWebService), and even a few server specific wrinkles for you.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.