Hi all

Nearly the same trick applied to WMS  can be done to build a WMTS request.
Here is an example for Spanish IGN Raster map:


<TMS>

<Layer idx="0">

<Title>IGN topografico</Title>

<Script><![CDATA[(

function convert(z1,x1,y1)

{y=(1<<z1)-1-y1;

return "
http://www.ign.es/wmts/mapa-raster?request=getTile&format=image/png&layer=MTN&TileMatrixSet=GoogleMapsCompatible&TileMatrix=
"+z1+"&TileCol="+x1+"&TileRow="+y1;

}

)]]></Script>

</Layer>

<Copyright>IGN</Copyright>

</TMS>

For most cases you only have to edit the URL string before &TileMatrix=


Note that WMTS request is `getTile` instead of `getMap` , so there is no
need to define a BBOX, but the `TileMatrix`, `TileRow`, and `TileCol`
parameters must be included.


This is a useful workaround if loading a map with its WMTSCapabilities.xml
file fails.


I will put it in the wiki ;-)


--


and more:I have put some  Spanish IGN onlinemaps TMS files  to download
here:


https://www.dropbox.com/s/sfzxdehmdqfs784/ESP_IGN_QMS_onlinemaps.zip?dl=0


Mitxel
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Qlandkartegt-users mailing list
Qlandkartegt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qlandkartegt-users

Reply via email to