Bonjour,
Est-ce que quelqu'un a déjà réussi à imprimer des couches WMTS provenant de l'IGN ? J'arrive à imprimer via GeoExt/MapFish une couche OpenstreetMap et mes couches vecteurs mais les couches IGN restent désespérément blanches. Et aucun message d'erreur explicite...
Voici mon fichier de specs, j'ai repris la définition des matrixIds du document de getCapabilities. :
Si quelqu'un avait une piste ou un exemple de config qui marche ?...
Barbara
Est-ce que quelqu'un a déjà réussi à imprimer des couches WMTS provenant de l'IGN ? J'arrive à imprimer via GeoExt/MapFish une couche OpenstreetMap et mes couches vecteurs mais les couches IGN restent désespérément blanches. Et aucun message d'erreur explicite...
Voici mon fichier de specs, j'ai repris la définition des matrixIds du document de getCapabilities. :
Code:
{"units":"m","srs":"EPSG:3857","layout":"A4 portrait","dpi":56,"title":"test","mapTitle":"Printing Demo","comment":"This is a simple map printed from GeoExt.","layers":[{
"baseURL":"http://gpp3-wxs.ign.fr/API_KEY/wmts",
"opacity":0.7,
"singleTile":false,
"type":"WMTS",
"layer":"GEOGRAPHICALGRIDSYSTEMS.MAPS",
"version":"1.0.0",
"requestEncoding":"KVP",
"tileOrigin":[-20037508,20037508],
"tileSize":[256,256],
"style":"normal",
"formatSuffix":"jpg",
"dimensions":null,
"params":{},
"maxExtent":[-20037508.34,-20037508.34,20037508.34,20037508.34],
"matrixSet":"PM",
"matrixIds":[
{"identifier":"0","topLeftCorner":[-20037508,20037508],"resolution":559082264,"matrixSize":[1,1],"tileSize":[256,256]},
{"identifier":"1","topLeftCorner":[-20037508,20037508],"resolution":279541132,"matrixSize":[2,2],"tileSize":[256,256]},
{"identifier":"2","topLeftCorner":[-20037508,20037508],"resolution":139770566,"matrixSize":[4,4],"tileSize":[256,256]},
{"identifier":"3","topLeftCorner":[-20037508,20037508],"resolution":69885283,"matrixSize":[8,8],"tileSize":[256,256]}
,{"identifier":"4","topLeftCorner":[-20037508,20037508],"resolution":34942641,"matrixSize":[16,16],"tileSize":[256,256]}
,{"identifier":"5","topLeftCorner":[-20037508,20037508],"resolution":17471320,"matrixSize":[32,32],"tileSize":[256,256]}
,{"identifier":"6","topLeftCorner":[-20037508,20037508],"resolution":8735660,"matrixSize":[64,64],"tileSize":[256,256]},
{"identifier":"7","topLeftCorner":[-20037508,20037508],"resolution":4367830,"matrixSize":[128,128],"tileSize":[256,256]},
{"identifier":"8","topLeftCorner":[-20037508,20037508],"resolution":2183915,"matrixSize":[256,256],"tileSize":[256,256]},
{"identifier":"9","topLeftCorner":[-20037508,20037508],"resolution":1091957,"matrixSize":[512,512],"tileSize":[256,256]},
{"identifier":"10","topLeftCorner":[-20037508,20037508],"resolution":545978,"matrixSize":[1024,1024],"tileSize":[256,256]},
{"identifier":"11","topLeftCorner":[-20037508,20037508],"resolution":272989,"matrixSize":[2048,2048],"tileSize":[256,256]},
{"identifier":"12","topLeftCorner":[-20037508,20037508],"resolution":136494,"matrixSize":[4096,4096],"tileSize":[256,256]},
{"identifier":"13","topLeftCorner":[-20037508,20037508],"resolution":68247,"matrixSize":[8192,8192],"tileSize":[256,256]}
,{"identifier":"14","topLeftCorner":[-20037508,20037508],"resolution":34123,"matrixSize":[16384,16384],"tileSize":[256,256]}
,{"identifier":"15","topLeftCorner":[-20037508,20037508],"resolution":17061,"matrixSize":[32768,32768],"tileSize":[256,256]},
{"identifier":"16","topLeftCorner":[-20037508,20037508],"resolution":8530,"matrixSize":[65536,65536],"tileSize":[256,256]}
,{"identifier":"17","topLeftCorner":[-20037508,20037508],"resolution":4265,"matrixSize":[131072,131072],"tileSize":[256,256]}
,{"identifier":"18","topLeftCorner":[-20037508,20037508],"resolution":2132,"matrixSize":[262144,262144],"tileSize":[256,256]}],
"zoomOffset":0,
"resolutions":[559082264,279541132,139770566,69885283,34942641,17471320,8735660,4367830,2183915,1091957,545978,272989,136494,68247,34123,17061,8530,4265,2132]}],
"pages":[{"center":[669421,5454823],"scale":68247,"rotation":0}]
}
Barbara