{"action":"created","issue":{"url":"https://api.github.com/repos/proj4php/proj4php/issues/17","labels_url":"https://api.github.com/repos/proj4php/proj4php/issues/17/labels{/name}","comments_url":"https://api.github.com/repos/proj4php/proj4php/issues/17/comments","events_url":"https://api.github.com/repos/proj4php/proj4php/issues/17/events","html_url":"https://github.com/proj4php/proj4php/issues/17","id":113853142,"number":17,"title":"Adding new conversions","user":{"login":"coreation","id":361244,"avatar_url":"https://avatars.githubusercontent.com/u/361244?v=3","gravatar_id":"","url":"https://api.github.com/users/coreation","html_url":"https://github.com/coreation","followers_url":"https://api.github.com/users/coreation/followers","following_url":"https://api.github.com/users/coreation/following{/other_user}","gists_url":"https://api.github.com/users/coreation/gists{/gist_id}","starred_url":"https://api.github.com/users/coreation/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coreation/subscriptions","organizations_url":"https://api.github.com/users/coreation/orgs","repos_url":"https://api.github.com/users/coreation/repos","events_url":"https://api.github.com/users/coreation/events{/privacy}","received_events_url":"https://api.github.com/users/coreation/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-10-28T15:50:37Z","updated_at":"2015-10-28T17:05:32Z","closed_at":null,"body":"Hi!\r\n\r\nGreat work on this library, it seems to be the only decent one that does coordinate conversion.\r\nCan you give me some pointers on what I'd have to do to add more conversions? I'm looking into using UK data, with an EPSG code of 27700, which is not yet supported here. I have no clue of how the math would work to make it go to WGS84 for example. Is there a reference on the web that clarifies the math involved or do I need to seek that out myself reading the specs of the 27700 coordinate system?"},"comment":{"url":"https://api.github.com/repos/proj4php/proj4php/issues/comments/151911321","html_url":"https://github.com/proj4php/proj4php/issues/17#issuecomment-151911321","issue_url":"https://api.github.com/repos/proj4php/proj4php/issues/17","id":151911321,"user":{"login":"judgej","id":395934,"avatar_url":"https://avatars.githubusercontent.com/u/395934?v=3","gravatar_id":"","url":"https://api.github.com/users/judgej","html_url":"https://github.com/judgej","followers_url":"https://api.github.com/users/judgej/followers","following_url":"https://api.github.com/users/judgej/following{/other_user}","gists_url":"https://api.github.com/users/judgej/gists{/gist_id}","starred_url":"https://api.github.com/users/judgej/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/judgej/subscriptions","organizations_url":"https://api.github.com/users/judgej/orgs","repos_url":"https://api.github.com/users/judgej/repos","events_url":"https://api.github.com/users/judgej/events{/privacy}","received_events_url":"https://api.github.com/users/judgej/received_events","type":"User","site_admin":false},"created_at":"2015-10-28T17:05:32Z","updated_at":"2015-10-28T17:05:32Z","body":"I'm going to guess you start like this:\r\n\r\n~~~php\r\n$proj4 = new Proj4php();\r\n\r\n$proj_osgb36 = new Proj('+proj=tmerc +lat_0=49 +lon_0=-2 +k=0.9996012717 +x_0=400000 +y_0=-100000 +ellps=airy +datum=OSGB36', $proj4);\r\n\r\n$proj_wgs84 = new Proj('EPSG:4326', $proj4);\r\n\r\n$easting = 652709.401;\r\n$northing = '6859290.946;\r\n$point_source = new Point($easting, $northing, $proj_osgb36);\r\n\r\n$point_dest = $proj4->transform($proj_wgs84, $point_source);\r\n~~~\r\n\r\nI've not run that yet, but see how it goes. Most of the magic is done in the final `transform`."}}