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}”)
System.Xml.XmlException HResult=0x80131940 Message=Il existe un caractère non valide dans l’encodage donné. Ligne 1, position 1. Source=ThinkGeo.MapSuite.Wpf Arborescence des appels de procédure : à ThinkGeo.MapSuite.Wpf.Tile.DrawException(GeoCanvas geoCanvas, Exception exception) à ThinkGeo.MapSuite.Wpf.Tile.Draw(GeoCanvas geoCanvas) à ThinkGeo.MapSuite.Wpf.Tile.hFY=(Object status) à System.Threading.QueueUserWorkItemCallback.WaitCallback_Context(Object state) à System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) à System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) à System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem() à System.Threading.ThreadPoolWorkQueue.Dispatch() à System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()
I’m sorry, I do not see how to change anything with getcapability.
I understand that the GetCapability returned by IGN does not meet a standard and so the thinkgeo Wmts layer can not read it.
By putting a breakpoint in the code, in sourceurl I have “http://wxs.ign.fr/?Service=WMTS&Request=GetCapabilities”
I can read it with xdocument but after that, how can I change <ows: SupportedCRS> EPSG: 3857 </ ow: SupportedCRS> by its equivalence that meets the standard …urn:ogc:def:crs:EPSG:6.18:3:3857?
But it’s mostly how to return a new uri that contains the GetCapabilities with this value there?
If the server is provide by 3rd part, you can try something like this:
Contact the service provider, and see whether they can fix that
Download their capability and modify it, then put the file in one of your server, and in your sending request event, modify the capability request link to get the modified version
If you find the cached capability file here: %Temp%\MapSuite\WfsLayer, you can just replace that with yours.