Code covered by the BSD License  

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video

Highlights from
LL2OS

5.0
5.0 | 1 rating Rate this file 2 Downloads (last 30 days) File Size: 1.87 KB File ID: #38817 Version: 1.2

LL2OS

by

 

30 Oct 2012 (Updated )

Convert from Lat Lon to OSGB coordinates

| Watch this File

File Information
Description

[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

Required Products MATLAB
MATLAB release MATLAB 7.11.1 (R2010bSP1)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (4)
17 Feb 2016 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

Comment only
05 Jan 2016 Antoine Jeanjean  
23 Sep 2015 Juliane

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

Comment only
02 Nov 2012 Michael Fourman

See also OS2LL for conversion from National Grid to Lat Lon

Comment only
Updates
31 Oct 2012 1.1

Now applies correctly to vector arguments.

02 Nov 2012 1.2

description - minor edit

Contact us