Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WMTS arcgis support #104

Closed
tom-butler opened this issue Mar 13, 2019 · 2 comments
Closed

WMTS arcgis support #104

tom-butler opened this issue Mar 13, 2019 · 2 comments

Comments

@tom-butler
Copy link
Contributor

  • datacube-wms version: latest
  • Python version: 3.6.7
  • Operating System: Ubuntu (opendatacube/wms:0.8.5-unstable.8.g116163a)

Description

WMTS doesn't support the tilematrixset used by arcgis online 'WholeWorld_WebMercator'

What I Did

  1. Loaded https://ows.services.devkube.dea.ga.gov.au/wmts into arcgis online
  2. Selected ls8_barest_earth_mosaic layer

Inspecting the network requests show that arcgis uses the following request

https://ows.services.devkube.dea.ga.gov.au/wmts?SERVICE=WMTS&VERSION=1.0.0&REQUEST=GetTile&LAYER=ls8_barest_earth_mosaic&STYLE=simple_rgb&FORMAT=image/png&TILEMATRIXSET=WholeWorld_WebMercator&TILEMATRIX=8&TILEROW=144&TILECOL=231

This fails with Service Exception: Invalid Tile Matrix Set: WholeWorld_WebMercator

For comparison a working request from nationalmap is

https://ows.services.devkube.dea.ga.gov.au/wmts?tilematrix=9&layer=ls8_barest_earth_mosaic&style=simple_rgb&tilerow=301&tilecol=450&tilematrixset=urn%3Aogc%3Adef%3Awkss%3AOGC%3A1.0%3AGoogleMapsCompatible&format=image%2Fpng&service=WMTS&version=1.0.0&request=GetTile

It'd be cool if WMTS worked out of the box with arcgis online (for story maps etc)

@SpacemanPaul
Copy link
Contributor

SpacemanPaul commented Mar 14, 2019

Hmm. That's odd. They are actually the same tile matrix sets.

I'll have a look at it. Probably a quick fix.

Edit: Yes, it's a one line fix. Let me just check the spec first to see if this goes in the "ways I have misread an OGC spec" pile or the "ways ESRI has misread an OGC spec" pile.

SpacemanPaul pushed a commit that referenced this issue Mar 14, 2019
@SpacemanPaul
Copy link
Contributor

Yep. Such a trivial one-liner I didn't even bother to do a PR. Latest commit should fix it. Let me know if it doesn't.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants