{"action":"created","issue":{"url":"https://api.github.com/repos/TDesjardins/gwt-ol3/issues/22","repository_url":"https://api.github.com/repos/TDesjardins/gwt-ol3","labels_url":"https://api.github.com/repos/TDesjardins/gwt-ol3/issues/22/labels{/name}","comments_url":"https://api.github.com/repos/TDesjardins/gwt-ol3/issues/22/comments","events_url":"https://api.github.com/repos/TDesjardins/gwt-ol3/issues/22/events","html_url":"https://github.com/TDesjardins/gwt-ol3/pull/22","id":142676538,"number":22,"title":"Rework of measurements and add ol.Sphere","user":{"login":"sebasbaumh","id":670885,"avatar_url":"https://avatars.githubusercontent.com/u/670885?v=3","gravatar_id":"","url":"https://api.github.com/users/sebasbaumh","html_url":"https://github.com/sebasbaumh","followers_url":"https://api.github.com/users/sebasbaumh/followers","following_url":"https://api.github.com/users/sebasbaumh/following{/other_user}","gists_url":"https://api.github.com/users/sebasbaumh/gists{/gist_id}","starred_url":"https://api.github.com/users/sebasbaumh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sebasbaumh/subscriptions","organizations_url":"https://api.github.com/users/sebasbaumh/orgs","repos_url":"https://api.github.com/users/sebasbaumh/repos","events_url":"https://api.github.com/users/sebasbaumh/events{/privacy}","received_events_url":"https://api.github.com/users/sebasbaumh/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-03-22T14:58:37Z","updated_at":"2016-03-23T09:55:46Z","closed_at":"2016-03-23T09:55:41Z","pull_request":{"url":"https://api.github.com/repos/TDesjardins/gwt-ol3/pulls/22","html_url":"https://github.com/TDesjardins/gwt-ol3/pull/22","diff_url":"https://github.com/TDesjardins/gwt-ol3/pull/22.diff","patch_url":"https://github.com/TDesjardins/gwt-ol3/pull/22.patch"},"body":"**Rework of measurements**\r\n\r\nNow always meters (for lengths) or square meters (for areas) are returned and the geometry is always returned in lat/lon coordinates. Furthermore the lengths and areas are calculated geodesic, which adjusts\r\nfor the underlying sphere/geoid.\r\n\r\nThe sample has been changed accordingly.\r\n\r\nThe deprecated functions in MeasureEvent might be removed later on.\r\nThey just affect getting measurements using a different projection, which does not make anymore sense.\r\n\r\n**Add ol.Sphere and supporting functions.**\r\n\r\nThe constants for the earth radius are unfortunately not public in the current API of OpenLayers 3 (see https://github.com/openlayers/ol3/issues/4954).\r\n\r\nWith this change the functions for calculating a geodesic area and distance will become usable for example to increase accuracy in measurements."},"comment":{"url":"https://api.github.com/repos/TDesjardins/gwt-ol3/issues/comments/200274335","html_url":"https://github.com/TDesjardins/gwt-ol3/pull/22#issuecomment-200274335","issue_url":"https://api.github.com/repos/TDesjardins/gwt-ol3/issues/22","id":200274335,"user":{"login":"TDesjardins","id":1841306,"avatar_url":"https://avatars.githubusercontent.com/u/1841306?v=3","gravatar_id":"","url":"https://api.github.com/users/TDesjardins","html_url":"https://github.com/TDesjardins","followers_url":"https://api.github.com/users/TDesjardins/followers","following_url":"https://api.github.com/users/TDesjardins/following{/other_user}","gists_url":"https://api.github.com/users/TDesjardins/gists{/gist_id}","starred_url":"https://api.github.com/users/TDesjardins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TDesjardins/subscriptions","organizations_url":"https://api.github.com/users/TDesjardins/orgs","repos_url":"https://api.github.com/users/TDesjardins/repos","events_url":"https://api.github.com/users/TDesjardins/events{/privacy}","received_events_url":"https://api.github.com/users/TDesjardins/received_events","type":"User","site_admin":false},"created_at":"2016-03-23T09:55:46Z","updated_at":"2016-03-23T09:55:46Z","body":"Thanks!"}}