#1 Fri 21 February 2020 14:29
- michel56
- Participant assidu
- Lieu: Lorient
- Date d'inscription: 14 Jul 2012
- Messages: 474
Openlayers WMTS de géobretagne.
Bonjour,
Comment faut-il paramétrer Openlayers pour afficher le flux wmts de géobretagne en EPSG:2154.
Je cherche depuis plusieurs jour sans y arriver.
Merçi.
Code:
OrthoExtentWmts = [-45587.1046212102519348, 6099959.5292354244738817, 1114835.9168208704795688, 7358451.4553877515718341]; var Resolutions_L93= [ 104579.2245498940, 52277.5323537905, 26135.4870785954, 13066.8913818000, 6533.2286041135, 3266.5595244627, 1633.2660045974, 816.6295549860, 408.3139146768, 204.1567415109, 102.0783167832, 51.0391448966, 25.5195690743, 12.7597836936, 6.3798916360, 3.1899457653, 1.5949728695, 0.7974864315, 0.3987432149, 0.1993716073, 0.0996858037, 0.0498429018 ]; var WMS_ORTHO = new ol.layer.Tile({ source : new ol.source.WMTS({ url: "https://tile.geobretagne.fr/gwc02/service/wmts", layer: "satellite", matrixSet: "EPSG:2154", format: "image/jpeg", //style: "normal", tileGrid : new ol.tilegrid.WMTS({ origin: ol.extent.getBottomLeft(OrthoExtentWmts),// topLeftCorner resolutions: Resolutions_L93, // résolutions matrixIds: ["EPSG:2154:0","EPSG:2154:1","EPSG:2154:2","EPSG:2154:3","EPSG:2154:4","EPSG:2154:5","EPSG:2154:6","EPSG:2154:7","EPSG:2154:8","EPSG:2154:9","EPSG:2154:10","EPSG:2154:11","EPSG:2154:12","EPSG:2154:13","EPSG:2154:14","EPSG:2154:15","EPSG:2154:16","EPSG:2154:17","EPSG:2154:18","EPSG:2154:19","EPSG:2154:20","EPSG:2154:21"]// ids des TileMatrix }) }), minResolution: 0, maxResolution: 2.2, isBaseLayer: true, visible: true });
Dernière modification par michel56 (Mon 24 February 2020 08:37)
Opérateur cartographique & DAO & PHP.
Hors ligne