Hi
I would like to be able to access this url via a WMTS layer in a WPF application.
When I test this url in a web browser, I have an answer.
So I tested in a WMTS layer but I have a 404 response
Here is my code :
WmtsLayer wmtsLayer = new WmtsLayer();
wmtsLayer.ServerUris.Add(new Uri(“https://wxs.ign.fr/pratique/geoportail/”));
wmtsLayer.Parameters.Add(“SERVICE”, “GetTile”);
wmtsLayer.Parameters.Add(“VERSION”, “1.0.0”);
wmtsLayer.Parameters.Add(“LAYER”, “ORTHOIMAGERY.ORTHOPHOTOS”);
wmtsLayer.Parameters.Add(“TILEMATRIXSET”, “PM”);
wmtsLayer.Parameters.Add(“TILEMATRIX”, “14”);
wmtsLayer.Parameters.Add(“TILECOL”, “8180”);
wmtsLayer.Parameters.Add(“TILEROW”, “5905”);
wmtsLayer.Parameters.Add(“STYLE”, “normal”);
wmtsLayer.Parameters.Add(“FORMAT”, “image/jpeg”);
wmtsLayer.Open();
LayerOverlay layerOverlay = new LayerOverlay();
layerOverlay.Layers.Add("wmtsLayer", wmtsLayer);
MapToto.Overlays.Add(layerOverlay);
MapToto.ZoomIntoCenter(10, new PointShape(48.845, 2.424));
MapToto.Refresh();
Have I forgotten something?
And if I do not want to specify a tilecol or tilerow or tilematrix, what should I put in parameter?
This …
wmtsLayer.Parameters…Add (“tilecol”, “{x}”)
wmtsLayer.Parameters.Add (“tilerow”, “{y}”)
wmtsLayer.Parameters.Add (“tilematrix”, “{z}”)
Thank you for your help.
Regards.
Steph.