File Exchange

image thumbnail

LL2OS

version 1.2.0.0 (1.87 KB) by Michael Fourman
Convert from Lat Lon to OSGB coordinates

2 Downloads

Updated 02 Nov 2012

View Version History

View License

[E, N] = LL2OS( LAT, LON ) returns OSGB UK National Grid coodinates E, N (easting and northing) for points given by latitude and longitude
Convert latitude/longitude => OS National Grid
(for inverse function see OS2LL)
Algorithm and constants from D00659 v2.1 Dec 2010 of
http://www.ordnancesurvey.co.uk/oswebsite/gps/docs/A_Guide_to_Coordinate_Systems_in_Great_Britain.pdf
(c) Michael Fourman 2012

Cite As

Michael Fourman (2020). LL2OS (https://www.mathworks.com/matlabcentral/fileexchange/38817-ll2os), MATLAB Central File Exchange. Retrieved .

Comments and Ratings (5)

Jon

Thanks, useful script. I concur with Steve's suggested modification in his comment of 17/2/16, following my own checks against the September 2015 publication (v2.4) of the Ordnance Survey "A guide to coordinate systems in Great Britain"; everything else lines up. Overall a nicely written script.

Steve711

Thanks for providing this useful facility. There is a bug on line 43, which should read N = I + II.* (lambda - lambda0).^2 + III .* (lambda - lambda0).^4 + IIIA .* (lambda - lambda0).^6 ; %C4. This then brings the code into alignment with the algorithm as published by Ordnance Survey

Antoine Jeanjean

Juliane

lll2os of os2ll(lat,lon) does not give the same latitude/longitude as is input. Can you check that?

Michael Fourman

See also OS2LL for conversion from National Grid to Lat Lon

MATLAB Release Compatibility
Created with R2010b
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!