{"action":"created","issue":{"url":"https://api.github.com/repos/fsvieira/map2covjson/issues/1","repository_url":"https://api.github.com/repos/fsvieira/map2covjson","labels_url":"https://api.github.com/repos/fsvieira/map2covjson/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/fsvieira/map2covjson/issues/1/comments","events_url":"https://api.github.com/repos/fsvieira/map2covjson/issues/1/events","html_url":"https://github.com/fsvieira/map2covjson/issues/1","id":173388317,"number":1,"title":"Handle y-x CRS axis ordering","user":{"login":"letmaik","id":530988,"avatar_url":"https://avatars.githubusercontent.com/u/530988?v=3","gravatar_id":"","url":"https://api.github.com/users/letmaik","html_url":"https://github.com/letmaik","followers_url":"https://api.github.com/users/letmaik/followers","following_url":"https://api.github.com/users/letmaik/following{/other_user}","gists_url":"https://api.github.com/users/letmaik/gists{/gist_id}","starred_url":"https://api.github.com/users/letmaik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/letmaik/subscriptions","organizations_url":"https://api.github.com/users/letmaik/orgs","repos_url":"https://api.github.com/users/letmaik/repos","events_url":"https://api.github.com/users/letmaik/events{/privacy}","received_events_url":"https://api.github.com/users/letmaik/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"fsvieira","id":477213,"avatar_url":"https://avatars.githubusercontent.com/u/477213?v=3","gravatar_id":"","url":"https://api.github.com/users/fsvieira","html_url":"https://github.com/fsvieira","followers_url":"https://api.github.com/users/fsvieira/followers","following_url":"https://api.github.com/users/fsvieira/following{/other_user}","gists_url":"https://api.github.com/users/fsvieira/gists{/gist_id}","starred_url":"https://api.github.com/users/fsvieira/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fsvieira/subscriptions","organizations_url":"https://api.github.com/users/fsvieira/orgs","repos_url":"https://api.github.com/users/fsvieira/repos","events_url":"https://api.github.com/users/fsvieira/events{/privacy}","received_events_url":"https://api.github.com/users/fsvieira/received_events","type":"User","site_admin":false},"assignees":[{"login":"fsvieira","id":477213,"avatar_url":"https://avatars.githubusercontent.com/u/477213?v=3","gravatar_id":"","url":"https://api.github.com/users/fsvieira","html_url":"https://github.com/fsvieira","followers_url":"https://api.github.com/users/fsvieira/followers","following_url":"https://api.github.com/users/fsvieira/following{/other_user}","gists_url":"https://api.github.com/users/fsvieira/gists{/gist_id}","starred_url":"https://api.github.com/users/fsvieira/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fsvieira/subscriptions","organizations_url":"https://api.github.com/users/fsvieira/orgs","repos_url":"https://api.github.com/users/fsvieira/repos","events_url":"https://api.github.com/users/fsvieira/events{/privacy}","received_events_url":"https://api.github.com/users/fsvieira/received_events","type":"User","site_admin":false}],"milestone":null,"comments":6,"created_at":"2016-08-26T07:34:46Z","updated_at":"2016-08-27T16:18:23Z","closed_at":null,"body":"There are CRSs where the axis order is flipped (y,x instead of x,y). This has to be reflected in the `domain.referencing[..].coordinates` array which would then be `[\"y\", \"x\"]`. Everything else stays the same.\r\n\r\nI think the following two functions could be used for that:\r\n\r\n[`int OGRSpatialReference::EPSGTreatsAsLatLong()`](http://www.gdal.org/classOGRSpatialReference.html#a519cce70fd39f974c61342bf73ab01ad)\r\n[`int OGRSpatialReference::EPSGTreatsAsNorthingEasting()`](http://www.gdal.org/classOGRSpatialReference.html#a2fe484ea1e7c8e8121b3ae05bb1a1878)\r\n\r\nSo, if either of those returns true, then use `[\"y\", \"x\"]` as value, otherwise `[\"x\", \"y\"]`.\r\n\r\n@jonblower Do you happen to have an example of a flipped projected CRS?"},"comment":{"url":"https://api.github.com/repos/fsvieira/map2covjson/issues/comments/242926244","html_url":"https://github.com/fsvieira/map2covjson/issues/1#issuecomment-242926244","issue_url":"https://api.github.com/repos/fsvieira/map2covjson/issues/1","id":242926244,"user":{"login":"letmaik","id":530988,"avatar_url":"https://avatars.githubusercontent.com/u/530988?v=3","gravatar_id":"","url":"https://api.github.com/users/letmaik","html_url":"https://github.com/letmaik","followers_url":"https://api.github.com/users/letmaik/followers","following_url":"https://api.github.com/users/letmaik/following{/other_user}","gists_url":"https://api.github.com/users/letmaik/gists{/gist_id}","starred_url":"https://api.github.com/users/letmaik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/letmaik/subscriptions","organizations_url":"https://api.github.com/users/letmaik/orgs","repos_url":"https://api.github.com/users/letmaik/repos","events_url":"https://api.github.com/users/letmaik/events{/privacy}","received_events_url":"https://api.github.com/users/letmaik/received_events","type":"User","site_admin":false},"created_at":"2016-08-27T16:18:23Z","updated_at":"2016-08-27T16:18:23Z","body":"The first two are the same, and they are in easting-northing order, see https://epsg.io/32629. The last one is in latitude, longitude order. So, since the UTM one (the first one) is not geographical but projected coordinates, it's not enough to check for TreatsAsLatLong. You also have to test for TreatsAsNorthingEasting which in that case I would expect to return false, and the order is \"x\", \"y\", so this is not an appropriate example as it is not flipped.\r\nWhy the EPSG:4326 system doesn't return True for the EPSGTreatsAsLatLong test is weird. You could ask that on OSGeo. But we should find a projected system which has northing-easting order."}}
{"actor":{"display_login":"letmaik"}}