Hi,
I’m trying to load maps from geoserver through WMTS. I’m using following code:
WmtsTiledOverlay wmtsTiledOverlay = new WmtsTiledOverlay(new Collection<Uri> { new Uri("http://172.31.89.208:8070/geoserver/gwc/service/wmts/") });
wmtsTiledOverlay.WmtsServerEncodingType = WmtsSeverEncodingType.Kvp;
wmtsTiledOverlay.Parameters.Add("LAYER", "World:WWDB_500m");
wmtsTiledOverlay.Parameters.Add("STYLE", "_null");
wmtsTiledOverlay.Parameters.Add("FORMAT", "image/png");
wmtsTiledOverlay.Parameters.Add("TileMatrixSet", "EPSG:900913");
wmtsTiledOverlay.InitializeConnection();
Map1.Overlays.Clear();
Map1.Overlays.Add(wmtsTiledOverlay);
Map1.Refresh();
But after the refresh method I’m getting an exception:
Error on the remote server (400) Invalid request.
What’s the problem?
Regards
Gonzalo