Bonjour,

J'ai une clé de production web IGN qui m'autorise l'accès à la BD ORTHO :

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
Ressources disponibles (2) : 
* BDORTHO WM - D033 2015 (ORTHOIMAGERY.ORTHOPHOTOS.BDORTHO) - service : OGC:WMS
* Pyramide BDOrtho en L93 (ORTHOIMAGERY.ORTHOPHOTOS.BDORTHO.L93) - service : OGC:WMTS

Paramètres de la couche WMTS ORTHOIMAGERY.ORTHOPHOTOS :

TileMatrixSets disponibles :
* LAMB93 (EPSG:2154)
* PM (EPSG:3857)
Je travaille avec Leaflet et je veux appeler ce service pour afficher les Orthos en fond de carte :

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
var ORTHO = L.tileLayer("http://wxs.ign.fr/"+ignApiKey+"/geoportail/wmts?LAYER=ORTHOIMAGERY.ORTHOPHOTOS.BDORTHO&"+
                        "EXCEPTIONS=text/xml&FORMAT=image/jpeg&"+
                        "SERVICE=WMTS&VERSION=1.0.0&REQUEST=GetTile&STYLE=normal&"+
                        "TILEMATRIXSET=PM&"+
                        "TILEMATRIX={z}&"+
                        "TILEROW={y}&"+
                        "TILECOL={x}",
                        {attribution: '&copy; <a href="http://www.ign.fr/">IGN</a>'}
);
Mais quand j'ouvre mon appli web :

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
http://wxs.ign.fr/<maCleIGN>/geoportail/wmts?LAYER=ORTHOIMAGE…Tile&STYLE=normal&TILEMATRIXSET=PM&TILEMATRIX=14&TILEROW=5687&TILECOL=8040 
Failed to load resource: the server responded with a status of 403 (Forbidden)
Si je clique sur le lien, j'ai l'erreur :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
<ExceptionReport>
<Exception exceptionCode="MissingRights">
Wrong referer or wrong IP Adress or wrong User-Agent
</Exception>
</ExceptionReport>
J'ai essayé aussi avec LAYER=ORTHOIMAGERY.ORTHOPHOTOS.BDORTHO.L93 dans l'appel de mon layer, le résultat est identique.

D'où vient le problème, comment le résoudre ?

Merci,