OS Grid references to lat/lon
Started by
Hans van der Maarel
, Feb 02 2006 09:28 AM
8 replies to this topic
#1
Posted 02 February 2006 - 09:28 AM
I'm looking for a way to convert OS Grid references (like ST626882) to lat/lon, automagically. Any thoughts?
Hans van der Maarel - Cartotalk Editor
Red Geographics
Email: hans@redgeographics.com / Twitter: @redgeographics
Red Geographics
Email: hans@redgeographics.com / Twitter: @redgeographics
#2
Posted 02 February 2006 - 12:09 PM
Do you have Manifold? There should be a way if you can paste OS cordinates as a drawing. Manifold displays x, y coordinates along with lat/long in the table.
#3
Posted 02 February 2006 - 12:27 PM
There's lots of code out there to do it. What software/programming language are you using?
#4
Posted 02 February 2006 - 01:06 PM
Do you have Manifold? There should be a way if you can paste OS cordinates as a drawing. Manifold displays x, y coordinates along with lat/long in the table.
I do have Manifold, but the data structure doesn't support this operation. There's no separate X and Y coordinates. The value ST626882 means a Northing of 626 and an Easting of 882 'somethings' relative to the lower left corner of grid ST (what those 'somethings' are is determined by the number of digits...). And there's the problem...
There's lots of code out there to do it. What software/programming language are you using?
I would prefer PHP. Didn't come across any samples using that, although I did find a Perl sample.
Also, something with a minimum of effort required on my behalf would be very nice. This is for an advisory thing for a non-profit organisation, so I can't really afford to pour in loads of time.
Hans van der Maarel - Cartotalk Editor
Red Geographics
Email: hans@redgeographics.com / Twitter: @redgeographics
Red Geographics
Email: hans@redgeographics.com / Twitter: @redgeographics
#6
Posted 03 February 2006 - 05:37 AM
Try this!
This should do the work for you with the two-letter grid squares, but if you need more info, there's a diagram here.
That looks promising. Thanks!
Hans van der Maarel - Cartotalk Editor
Red Geographics
Email: hans@redgeographics.com / Twitter: @redgeographics
Red Geographics
Email: hans@redgeographics.com / Twitter: @redgeographics
#7
Posted 06 February 2006 - 10:12 AM
The Wikipedia page for the British national Grid system
http://en.wikipedia....eference_system
has a quick two letter -> meter value conversion chart.
With a lookup table for converting the parsed letter values, and minding the datum shift (OSGB36 (Ordnance Survey Great Britain 1936)) plus the scale factor... should be a piece of cake, eh?
Datum: OSGB1936,
Map projection: Transverse Mercator,
Latitude of Origin: 49,
Longitude of Origin: -2,
Scale Factor: 0.999601272000000040,
False Easting: 400000 m,
False Northing: -100000 m
http://en.wikipedia....eference_system
has a quick two letter -> meter value conversion chart.
With a lookup table for converting the parsed letter values, and minding the datum shift (OSGB36 (Ordnance Survey Great Britain 1936)) plus the scale factor... should be a piece of cake, eh?
Datum: OSGB1936,
Map projection: Transverse Mercator,
Latitude of Origin: 49,
Longitude of Origin: -2,
Scale Factor: 0.999601272000000040,
False Easting: 400000 m,
False Northing: -100000 m
#8
Posted 06 February 2006 - 11:35 AM
I was actually looking for something automatic
The link that Richard posted led to a bit of PHP code that did the trick.
The link that Richard posted led to a bit of PHP code that did the trick.
Hans van der Maarel - Cartotalk Editor
Red Geographics
Email: hans@redgeographics.com / Twitter: @redgeographics
Red Geographics
Email: hans@redgeographics.com / Twitter: @redgeographics
#9
Posted 13 February 2006 - 03:34 AM
Hans,
I posted this on Carto-SOC recently,
NEARBY.ORG.UK
Has a great Geographical Search Engine for all things to do with UK and Ireland Mapping plus OS trig sources, web mapping site comparison table and an excellent online World co-ord Converter
http://www.nearby.org.uk/index2.html
SEARCHING.UK.COM
This has great links to several Geographic Converter and Calculator sites - UK and Worldwide
http://www.searching..._converter.html
Mike
I posted this on Carto-SOC recently,
NEARBY.ORG.UK
Has a great Geographical Search Engine for all things to do with UK and Ireland Mapping plus OS trig sources, web mapping site comparison table and an excellent online World co-ord Converter
http://www.nearby.org.uk/index2.html
SEARCHING.UK.COM
This has great links to several Geographic Converter and Calculator sites - UK and Worldwide
http://www.searching..._converter.html
Mike
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users


Sign In
Create Account

Netherlands
Back to top
Canada
United Kingdom
United States








