For some reason when I add a WMTS layer AGOL appends "rest" to the end of my base URL making it an invalid query. so https://geo.spatialhub.scot/geoserver/sh_cpth/gwc/service/wmts?authkey=xyz becomes https://geo.spatialhub.scot/geoserver/sh_cpth/gwc/service/wmts/rest?authkey=xyz
customParameters | Web Map Specification | ArcGIS Developers
Help to use custom parameters
OGC—Portal for ArcGIS | Documentation for ArcGIS Enterprise From our documentation, "OGC WFS, WMS, and WMTS services secured with web-tier authentication, such as Integrated Windows Authentication (IWA), a public key infrastructure (PKI), Basic, or Digest access authentication, are supported. OGC WFS, WMS, and WMTS services secured with token-based authentication are not supported. "It has been discovered through further conversations that the ability to use custom parameters is available through the following : customParameters | Web Map Specification | ArcGIS Developers
I have been working with my colleagues on investigating the issue with the GeoServer - I have access to another WMTS service which also appends the rest value and I have evidence this service works.
paituli.csc.fi/geoserver/paituli/gwc/service/wmts?
Please test this opensource link and let us know if the issue persists with that service.
I would be interested to know if what version your GeoServer is and if it is fully patched.
Other influences would be if there are any settings applied at GeoServer level that could be impacting use within ArcGIS Online.
We will continue to monitor this feed and thanks for bringing it to our attention.
Don't worry, we've got the WFS filter working now (but only in the new AGOL map - it doesn't work in 'Classic'). Our main issue is why our WMTS isn't able to work in AGOL. This is the open URL (with open auth key) we're trying to get working: https://geo.spatialhub.scot/geoserver/sh_mwgt/gwc/service/wmts?authkey=b85aa063-d598-4582-8e45-e7e6048718fc
Give us a shout if you have any ideas.
Greetings @NathanAtkinson For the WFS, in the Map Viewer, are you using the correct syntax for the CQL_FILTER?Here is an example that works for me:
If this is an Esri WFS, I'm afraid that, as far as I know, these do not support CQL_FILTER.
Yep, it fails (Times Out) at the load stage using a CGL_FILTER parameter. Interestingly, Map Viewer Classic seems to totally ignore such WFS filter parameters.
Greetings @NathanAtkinson
If you add the WFS to the Map Viewer, you should be able to use the Filter tool. Here is an illustration:
Have you tried the above?
Thanks Miguel, yep, we have an open Tech Support query about this. We're also having issues filtering our WFS services (by attribute) when bringing them into ArcGIS online. Don't suppose you have any advice on how/ if that can be done?
Greetings @NathanAtkinson That is quite odd behaviour. Is this happening regardless of whether you use the Map Viewer AND Map Viewer Classic?
Have you tried adding the WMTS as an item in Content?
I would be very interested in testing the WMTS. If you are an Esri UK customer, I would recommend raising a support case with Technical Support so that we are better able to assist you.
Hi Miguel,
Yes, I have already added the authkey as a custom parameter. The issue is that AGOL is appending "rest" to the end of my URL as seen above in the screenshots provided when AGOL makes a GetCapabilites request to fetch the layers "rest" is not appended to the URL and I get a status code of 200. But when I added the layer all following requests have "rest" appended to the URL making it an invalid endpoint.
When adding the WMTS to say, Map Viewer in ArcGIS Online, have you tried entering the Authkey as a custom parameter instead of appending it to the end of the URL?
Give that a go and see if it works for you.
Though when it does a GetCapabilites request to list the layers at that endpoint it does not append "rest" to the end of the query...
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.