-
Notifications
You must be signed in to change notification settings - Fork 279
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
owslib.wmts.WebMapTileService cannot load World Imagery Wayback
wmts layers
#966
Comments
Looks like the error comes from the fact that |
@Fanchengyan - @CJGutz is correct - only http namespaces are supported in OWSLib. I'm not sure if http://wayback.maptiles.arcgis.com is an outlier in that it switches between http and https for xmlns values based on the protocol used. Other servers I've checked use http for their namespaces for both http and https requests. Looking at the code it is not an easy change to support both, but if there are more severs/services that do this it could be considered. |
Hi @CJGutz and @geographika Thanks for the detailed explanation. Switching to HTTP namespaces seems appropriate for now. HTTPS is definitely the future trend for web protocols, and supporting it would be a significant improvement for security and modern web standards. Additionally, QGIS can already directly recognize and work with HTTPS protocols. Interestingly, since OWSLib is built into QGIS, I initially assumed QGIS was using OWSLib for this functionality, but it appears they've implemented their own solution. |
@Fanchengyan - just to clarify - OWSLib works fine with reading over https. The issue here is the server wayback.maptiles.arcgis.com returns XML with The OWSLib WMTS code searches in the XML for the string This is either a server configuration error, or the WMTS spec allows for both URLs to be used in its XML in which case we should look at updating OWSLib to handle this (and WMTS isn't the only protocol which assumes http in the XML responses). It seems this is still in issue in newer OGC services, see:
From the above link:
@tomkralidis - should we consider supporting both http and https namespaces throughout OWSLib? |
The canonical namespace URI for WMTS 1.0.0 is |
Hi all,
Thanks for your work on
owslib
.I can load the wmts layer of ESRI
World Imagery Wayback
in QGIS, but I can't load it in python usingowslib
, when I run the following code:I get an error:
I have tried to use
parse_remote_metadata=True
andversion="1.0.0"
, but it doesn't work.Is there any way to load the wmts layer of ESRI
World Imagery Wayback
in python usingowslib
?The text was updated successfully, but these errors were encountered: