WMTS Retrieval from Geoserver with .Net Runtime 100.1+
I have 2 questions and would really appreciate any help. We're using the .net runtime to render a map hosted by Geoserver in a WPF application.
We're able to use the following line from our xaml:
<esri:WmtsLayer Source="http://abc.com/geoserver/gwc/service/wmts?REQUEST=GetCapabilities&tilematrixset=EPSG:4326" LayerId="workspace:layer"/> to retrieve the layers in PNG in Geoserver 2.11 and it loads just fine.
1) When we use Geoserver 2.13 we get nothing. Should we be using a different ArcGIS function to retrieve our map?
2) Whenever we pass a PreferredImageFormat PNG8 it still always retrieves PNG. Is there any reason why the runtime refuses to grab PNG8 from our Geoserver?
Any input on this would be greatly appreciated, thank you.
Hello, Ben. We recently identified a few compatibility problems between Runtime 100.1+ and GeoServer 2.13+. We are working to fix these in future Runtime releases. Some of the issues can be worked around, for instance:
If no keywords are specified for the service, GeoServer/GeoWebCache inserts an empty `<Keywords />` element into the ServiceIdentification section of its GetCapabilities response. This technically violates the OGC Web Services Common Specification, albeit in a very trivial way. This currently causes Runtime to fail loading the rest of the service metadata. Workaround: You can avoid this problem by specifying at least one keyword for the service (and not just for the individual layers).
The remaining issues are still under investigation. I'll post more information here when it is available.
We have GeoServer compatibility improvements working internally, and they will be available in a Runtime update in the near future. I will update this discussion when it's released. You can also find more details and potential workarounds here: Geoserver 2.14 with ArcgisRuntimeSDK 100.4
Good news — ArcGIS Runtime 100.5.0 was released this week! It makes several improvements to GeoServer/GWC compatibility. Upgrading to this version should resolve the WMTS problems that you are experiencing. Please let us know how it goes!