{"action":"closed","issue":{"url":"https://api.github.com/repos/proj4js/proj4js/issues/169","labels_url":"https://api.github.com/repos/proj4js/proj4js/issues/169/labels{/name}","comments_url":"https://api.github.com/repos/proj4js/proj4js/issues/169/comments","events_url":"https://api.github.com/repos/proj4js/proj4js/issues/169/events","html_url":"https://github.com/proj4js/proj4js/issues/169","id":128128204,"number":169,"title":"Allow parsing of DMS format projection definition","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":1,"created_at":"2016-01-22T10:38:28Z","updated_at":"2016-01-23T11:27:08Z","closed_at":"2016-01-23T11:27:08Z","body":"proj4js was unable to parse the following [definition](https://github.com/OSGeo/proj.4/blob/master/nad/world#L4) correctly:\r\n```\r\n<CH1903> # Swiss Coordinate System\r\n\t+proj=somerc +lat_0=46d57'8.660\"N +lon_0=7d26'22.500\"E\r\n\t+ellps=bessel +x_0=600000 +y_0=200000\r\n\t+k_0=1.  no_defs <>\r\n```\r\n\r\nThe main reason is that the lat and lon coordinates are written in DMS (Degree Minute Seconds) format instead of fully decimal degrees.\r\n\r\nAs the above definition is a projection included in the original proj.4 in the [world](https://github.com/OSGeo/proj.4/blob/master/nad/world) file, proj4js should be able to interpret it correctly by parsing the value not as a float, but checking if it is in DMS format and [converting](https://en.wikipedia.org/wiki/Geographic_coordinate_conversion#Coordinate_format_conversion) it if necessary."}}