Lat/Long to OS Grid ref

seekin
11-23-2007, 04:26 AM
Can anybody point me in the direction of a converter from Lat/Long to OS grid ref (for the UK) which I can use in VB6. Ideally in OCX or DLL form.

Thanks.

Wilfried
11-25-2007, 03:46 AM
Hi,

I found this: Convert between Latitude/Longitude & OS National Grid Reference points (http://www.movable-type.co.uk/scripts/latlong-gridref.html) example sare in javascript but should be easy to translate to VB.

Winwaed
11-26-2007, 09:52 PM
I think there's also a manual on the OS website. I know I have a printout somewhere that I printed out years ago. It goes through the theory - eg. what the transformation actually means and what the assumptions are. The trick that is easy to forget (and Microsoft *did* forget in MapPoint 2002!) is that OS grid references use the Airy '36 geoid rather than the WGS84 used by MapPoint (and most GPS devices).


Richard

loudcox
12-13-2007, 04:41 PM
Try here (http://www.developerfusion.co.uk/show/5507/4/) for a detailed discussion of, and and C code for, the complete conversion cycle from NMEA data through to Long/Lat and then OS Grid Refs.

The linked page is specifically about LL to OSRefs but the entire article is very useful.

 
Web mp2kmag.com
mapforums.com