Works perfectly ! 

Nice trick ! 

zero 

Le 10.08.2017 15:12, Mitxel a écrit :

> Hi all
> 
> As explained HERE [1], at  French IGN's official blog: 
> The IGN has set up a new experimetal service to provide a more easy access to 
> WMTS maps.   The most relevant is that no personal KEY or register is needed. 
> At this moment two layers  (Topo and Ortho) are provided  in EPSG:3857 srs.
> 
> I have set up the necessary .tms files for QMS,  following the trick to load 
> a WMTS service as TMS, and it works perfectly. 
> 
> You can download this FR_IGN_online.zip [2], that contains the tms files or 
> you can create yours  with this content: 
> 
> For FR_IGN_topo:
> 
> <TMS>
> <Layer idx="0">
> <Title>FR_IGN_topo</Title>
> <Script><![CDATA[(
> function convert(z1,x1,y1)
> { function M(n){return 256*n*(156543.03392804062/(1<<z1))-20037508.342789244}
> y=(1<<z1)-1-y1;
> bbox=M(x1)+','+M(y)+','+M(x1+1)+','+M(y+1);
> return 
> "https://wxs.ign.fr/pratique/geoportail/wmts?LAYER=GEOGRAPHICALGRIDSYSTEMS.MAPS&EXCEPTIONS=text/xml&FORMAT=image/jpeg&SERVICE=WMTS&VERSION=1.0.0&REQUEST=GetTile&STYLE=normal&TILEMATRIXSET=PM&&TILEMATRIX="+z1+"&TileCol="+x1+"&TileRow="+y1;
> }
> )]]></Script>
> </Layer>
> <Copyright>IGN_France</Copyright>
> </TMS>
> 
> For FR_IGN_ortho:
> 
> <TMS>
> <Layer idx="0">
> <Title>FR_IGN_topo</Title>
> <Script><![CDATA[(
> function convert(z1,x1,y1)
> { function M(n){return 256*n*(156543.03392804062/(1<<z1))-20037508.342789244}
> y=(1<<z1)-1-y1;
> bbox=M(x1)+','+M(y)+','+M(x1+1)+','+M(y+1);
> return 
> "https://wxs.ign.fr/pratique/geoportail/wmts?LAYER=ORTHOIMAGERY.ORTHOPHOTOS&EXCEPTIONS=text/xml&FORMAT=image/jpeg&SERVICE=WMTS&VERSION=1.0.0&REQUEST=GetTile&STYLE=normal&TILEMATRIXSET=PM&&TILEMATRIX="+z1+"&TileCol="+x1+"&TileRow="+y1;
> }
> )]]></Script>
> </Layer>
> <Copyright>IGN_France</Copyright>
> </TMS> 
> 
> ----
> 
> Note that the procedure  to acces WMTS  with a personal key explained in the 
> QMS Wiki [3]is working too, and it is very usefull because it can be tunned 
> to acces several layers that can not be accesed with the new  'no key' 
> service. 
> 
> I will append this in the wiki
> 
> Enjoy :-)
> 
> 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

 

Links:
------
[1]
https://geoservices.ign.fr/blog/2017/06/28/geoportail_sans_compte.html
[2] https://www.dropbox.com/s/azoo7j4ler7xo10/FR_IGN_online.zip?dl=0
[3]
https://bitbucket.org/maproom/qmapshack/wiki/DocMapsTipsTricks#markdown-header-wmts-configuration-to-access-french-ign-maps-geoportail
------------------------------------------------------------------------------
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