{"action":"created","issue":{"url":"https://api.github.com/repos/geobretagne/mviewer/issues/31","repository_url":"https://api.github.com/repos/geobretagne/mviewer","labels_url":"https://api.github.com/repos/geobretagne/mviewer/issues/31/labels{/name}","comments_url":"https://api.github.com/repos/geobretagne/mviewer/issues/31/comments","events_url":"https://api.github.com/repos/geobretagne/mviewer/issues/31/events","html_url":"https://github.com/geobretagne/mviewer/issues/31","id":176164872,"number":31,"title":"Proxy et GetCapabilities du service WMTS de osm.geopicardie.fr","user":{"login":"bchartier","id":2361255,"avatar_url":"https://avatars.githubusercontent.com/u/2361255?v=3","gravatar_id":"","url":"https://api.github.com/users/bchartier","html_url":"https://github.com/bchartier","followers_url":"https://api.github.com/users/bchartier/followers","following_url":"https://api.github.com/users/bchartier/following{/other_user}","gists_url":"https://api.github.com/users/bchartier/gists{/gist_id}","starred_url":"https://api.github.com/users/bchartier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bchartier/subscriptions","organizations_url":"https://api.github.com/users/bchartier/orgs","repos_url":"https://api.github.com/users/bchartier/repos","events_url":"https://api.github.com/users/bchartier/events{/privacy}","received_events_url":"https://api.github.com/users/bchartier/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-09-10T07:21:19Z","updated_at":"2016-09-12T07:43:17Z","closed_at":null,"body":"En essayant de configurer comme fond de carte une couche du service WMTS de osm.geopicardie.fr (cf. http://osm.geopicardie.fr/mapproxy/demo/), je me suis rendu compte que le proxy utilisé par mviewer n'arrive pas à récupérer les capabilities du service.\r\n\r\nMon paramétrage :\r\n```\r\n\t\t<baselayer\r\n\t\t\ttype=\"WMTS\"\r\n\t\t\tid=\"osm-geopic-bright-wmts\"\r\n\t\t\tlabel=\"OSM - GéoPicardie bright WMTS\"\r\n\t\t\ttitle=\"OpenStreetMap - fond GéoPicardie contrasté\"\r\n\t\t\tmaxscale=\"1000\"\r\n\t\t\tthumbgallery=\"img/basemap/osm.png\"\r\n\t\t\turl=\"http://osm.geopicardie.fr/mapproxy/service\"\r\n\t\t\tlayers=\"bright\"\r\n\t\t\tformat=\"image/png\"\r\n\t\t\tvisible=\"false\"\r\n\t\t\tfromcapacity=\"true\"\r\n\t\t\tmatrixset=\"webmercator\"\r\n\t\t\tattribution=\"Données : les contributeurs d'&lt;a href='http://www.openstreetmap.org/' target='_blank'&gt;OpenStreetMap &lt;/a&gt;,  &lt;a href='http://www.openstreetmap.org/copyright' target='_blank'>ODbL &lt;/a&gt;\"\r\n\t\t\t/>\r\n```\r\n\r\nLe message d'erreur dans la console Python :\r\n\r\n`GET http://localhost/proxy/?url=http%3A%2F%2Fosm.geopicardie.fr%2Fmapproxy%2Fservice&SERVICE=WMTS&VERSION=1.0.0&REQUEST=GetCapabilities 404 (Not Found)`\r\n\r\nLes capabilities du service sont bien accessibles à l'URL suivante :\r\n\r\nhttp://osm.geopicardie.fr/mapproxy/service?REQUEST=GetCapabilities&SERVICE=WMTS&VERSION=1.0.0\r\n\r\nJe soupçonne que la requête envoyée au proxy est erronée.\r\n"},"comment":{"url":"https://api.github.com/repos/geobretagne/mviewer/issues/comments/246271949","html_url":"https://github.com/geobretagne/mviewer/issues/31#issuecomment-246271949","issue_url":"https://api.github.com/repos/geobretagne/mviewer/issues/31","id":246271949,"user":{"login":"spelhate","id":1793792,"avatar_url":"https://avatars.githubusercontent.com/u/1793792?v=3","gravatar_id":"","url":"https://api.github.com/users/spelhate","html_url":"https://github.com/spelhate","followers_url":"https://api.github.com/users/spelhate/followers","following_url":"https://api.github.com/users/spelhate/following{/other_user}","gists_url":"https://api.github.com/users/spelhate/gists{/gist_id}","starred_url":"https://api.github.com/users/spelhate/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spelhate/subscriptions","organizations_url":"https://api.github.com/users/spelhate/orgs","repos_url":"https://api.github.com/users/spelhate/repos","events_url":"https://api.github.com/users/spelhate/events{/privacy}","received_events_url":"https://api.github.com/users/spelhate/received_events","type":"User","site_admin":false},"created_at":"2016-09-12T07:43:17Z","updated_at":"2016-09-12T07:43:17Z","body":"Il n'y a pas de proxy dans mviewer. Par contre il est possible d'utiliser celui de geOrchestra ou mieux de s'en passer en activant CORS (http://enable-cors.org/) sur ton serveur mapproxy."}}
{"actor":{"display_login":"spelhate"}}