Skip to content

Add functions to convert between WGS-84 and OSGB36 #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 10 commits into from

Conversation

natmchugh
Copy link
Contributor

Using my rudimentary knowledge of C I have implemented the helmert transformation and some other functions to make it useful.

This may be completely the wrong way to do it and I am happy to change any of it but just thought it would be good to get the functions in there.

I based the calculations on the spreadsheet www.ordnancesurvey.co.uk/oswebsite/gps/docs/ProjectionandTransformationCalculations.xls which seemed to be a pretty accurate source.

Nathaniel McHugh added 8 commits October 9, 2012 22:27
* converts from cartesian to polar based on Airy 1830
* need to handle different ellipsoids
* transform caresian to polar co-ords
* clean up code of helmert a lot
* by combining output can transform between datums
* -1 error with height
* next step is to move these php functuons to C functions and create convert datum PHP function and wrappers
@mgdm
Copy link
Contributor

mgdm commented Nov 8, 2012

Looks good, though if I'm being really fussy the whitespace seems to be a bit different to how the rest of the file is? Can you be bothered fixing that?

@natmchugh
Copy link
Contributor Author

Yep yep I'll fix it up and add another commit

* more comments
@natmchugh
Copy link
Contributor Author

Hopefully that has fixed the whitespace issues

* add test for decimal minutes
* add test on prime meridian based on this photo http://upload.wikimedia.org/wikipedia/commons/a/a1/Garmin_GPS_at_Greenwich_Observatory.jpg
@natmchugh natmchugh closed this Dec 3, 2012
@mgdm
Copy link
Contributor

mgdm commented Dec 3, 2012

Oops, I'd not seen that notification. Any reason you closed it? I'm happy to merge it after I test it later today.

@mgdm mgdm reopened this Dec 3, 2012
@natmchugh
Copy link
Contributor Author

I was just going to open again from a different branch

@natmchugh natmchugh closed this Dec 13, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants