{"action":"created","issue":{"url":"https://api.github.com/repos/mapserver/mapcache/issues/144","repository_url":"https://api.github.com/repos/mapserver/mapcache","labels_url":"https://api.github.com/repos/mapserver/mapcache/issues/144/labels{/name}","comments_url":"https://api.github.com/repos/mapserver/mapcache/issues/144/comments","events_url":"https://api.github.com/repos/mapserver/mapcache/issues/144/events","html_url":"https://github.com/mapserver/mapcache/issues/144","id":162972267,"number":144,"title":"Wrong axis order in WMTS Capabilities document?","user":{"login":"tomhel","id":1685308,"avatar_url":"https://avatars.githubusercontent.com/u/1685308?v=3","gravatar_id":"","url":"https://api.github.com/users/tomhel","html_url":"https://github.com/tomhel","followers_url":"https://api.github.com/users/tomhel/followers","following_url":"https://api.github.com/users/tomhel/following{/other_user}","gists_url":"https://api.github.com/users/tomhel/gists{/gist_id}","starred_url":"https://api.github.com/users/tomhel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomhel/subscriptions","organizations_url":"https://api.github.com/users/tomhel/orgs","repos_url":"https://api.github.com/users/tomhel/repos","events_url":"https://api.github.com/users/tomhel/events{/privacy}","received_events_url":"https://api.github.com/users/tomhel/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-06-29T16:38:19Z","updated_at":"2016-06-29T17:13:13Z","closed_at":null,"body":"Reading the OGC WMTS Specification and OGC Web Services Common Specification it seem that the axis order of ows:BoundingBox should be as defined by the CRS:\r\n\r\n> The number of axes included, and the order of these axes, shall be as specified by the referenced CRS.\r\n\r\nFor CRS 3006 it is defined as North,East (Lat,Lon), but in the capabilities document produced by MapCache ows:BoundingBox is East,North:\r\n\r\n```xml\r\n<ows:BoundingBox crs=\"urn:ogc:def:crs:EPSG:6.3:3006\">\r\n  <LowerCorner>-1200000.000000 4305696.000000</LowerCorner>\r\n  <UpperCorner>2994304.000000 8500000.000000</UpperCorner>\r\n</ows:BoundingBox>\r\n```\r\n\r\nHowever, TopLeftCorner has the correct axis order (North,East):\r\n\r\n```xml\r\n<TopLeftCorner>8500000.000000 -1200000.000000</TopLeftCorner>\r\n```\r\n\r\nOur grid definition looks like this:\r\n\r\n```xml\r\n<grid name=\"3006\">\r\n  <srs>EPSG:3006</srs>\r\n  <size>256 256</size>\r\n  <extent>-1200000 4305696 2994304 8500000</extent>\r\n  <units>m</units>\r\n  <resolutions>4096 2048 1024 512 256 128 64 32 16 8 4 2 1 0.5</resolutions>\r\n</grid>\r\n```\r\n\r\nIs this a bug or am I missing something?"},"comment":{"url":"https://api.github.com/repos/mapserver/mapcache/issues/comments/229424136","html_url":"https://github.com/mapserver/mapcache/issues/144#issuecomment-229424136","issue_url":"https://api.github.com/repos/mapserver/mapcache/issues/144","id":229424136,"user":{"login":"tbonfort","id":358469,"avatar_url":"https://avatars.githubusercontent.com/u/358469?v=3","gravatar_id":"","url":"https://api.github.com/users/tbonfort","html_url":"https://github.com/tbonfort","followers_url":"https://api.github.com/users/tbonfort/followers","following_url":"https://api.github.com/users/tbonfort/following{/other_user}","gists_url":"https://api.github.com/users/tbonfort/gists{/gist_id}","starred_url":"https://api.github.com/users/tbonfort/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tbonfort/subscriptions","organizations_url":"https://api.github.com/users/tbonfort/orgs","repos_url":"https://api.github.com/users/tbonfort/repos","events_url":"https://api.github.com/users/tbonfort/events{/privacy}","received_events_url":"https://api.github.com/users/tbonfort/received_events","type":"User","site_admin":false},"created_at":"2016-06-29T17:13:13Z","updated_at":"2016-06-29T17:13:13Z","body":"Seems like a bug. PRs accepted, you can check the handling of TopLeftCorner to determine if/when to invert axes."}}
{"actor":{"display_login":"tbonfort"}}