{"action":"created","issue":{"url":"https://api.github.com/repos/openlayers/ol3/issues/3533","labels_url":"https://api.github.com/repos/openlayers/ol3/issues/3533/labels{/name}","comments_url":"https://api.github.com/repos/openlayers/ol3/issues/3533/comments","events_url":"https://api.github.com/repos/openlayers/ol3/issues/3533/events","html_url":"https://github.com/openlayers/ol3/issues/3533","id":67444242,"number":3533,"title":"linestring getLength not returning expected value","user":{"login":"mylen","id":2651902,"avatar_url":"https://avatars.githubusercontent.com/u/2651902?v=3","gravatar_id":"","url":"https://api.github.com/users/mylen","html_url":"https://github.com/mylen","followers_url":"https://api.github.com/users/mylen/followers","following_url":"https://api.github.com/users/mylen/following{/other_user}","gists_url":"https://api.github.com/users/mylen/gists{/gist_id}","starred_url":"https://api.github.com/users/mylen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mylen/subscriptions","organizations_url":"https://api.github.com/users/mylen/orgs","repos_url":"https://api.github.com/users/mylen/repos","events_url":"https://api.github.com/users/mylen/events{/privacy}","received_events_url":"https://api.github.com/users/mylen/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":24,"created_at":"2015-04-09T20:27:58Z","updated_at":"2015-04-13T16:02:50Z","closed_at":null,"body":"I am using getLength to retrieve the linestring length.\r\n\r\nFor the same segment:\r\n1- when using google map measure tool, I get 228m\r\n2- when using IGN geoportail measure tool, I get 228m\r\n3- when I use e.feature.getGeometry().getLength() I get 330m\r\n\r\nHere are the flat coordinates:\r\ne.feature.getGeometry().getFlatCoordinates() :\r\n[571382.4214041593, 5723486.068714521, 571593.8175605105, 5723741.65502785]\r\n\r\nin 4326:\r\n[5.132815622245775, 45.644023326845485, 5.134714626228319, 45.64562844964627]\r\n\r\nWhen I check the coordinates position on either ol3 or google map, I get the same points. The difference must come from the calcul...\r\n\r\nDid I miss something and I should not use the getLength method? Please give me some direction if you think this is not an issue."},"comment":{"url":"https://api.github.com/repos/openlayers/ol3/issues/comments/92411392","html_url":"https://github.com/openlayers/ol3/issues/3533#issuecomment-92411392","issue_url":"https://api.github.com/repos/openlayers/ol3/issues/3533","id":92411392,"user":{"login":"probins","id":283514,"avatar_url":"https://avatars.githubusercontent.com/u/283514?v=3","gravatar_id":"","url":"https://api.github.com/users/probins","html_url":"https://github.com/probins","followers_url":"https://api.github.com/users/probins/followers","following_url":"https://api.github.com/users/probins/following{/other_user}","gists_url":"https://api.github.com/users/probins/gists{/gist_id}","starred_url":"https://api.github.com/users/probins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/probins/subscriptions","organizations_url":"https://api.github.com/users/probins/orgs","repos_url":"https://api.github.com/users/probins/repos","events_url":"https://api.github.com/users/probins/events{/privacy}","received_events_url":"https://api.github.com/users/probins/received_events","type":"User","site_admin":false},"created_at":"2015-04-13T16:02:50Z","updated_at":"2015-04-13T16:02:50Z","body":"true. 'Pass in 2 parameters ...'"}}