[Talk-GB] OS grid positions
Nick Whitelegg
Nick.Whitelegg at solent.ac.uk
Mon May 9 12:51:36 BST 2011
Actually just realised this is a dodgy svn version with bugs, it's not my current production version. It won't work because some of the associative array fields are called 'long' not 'lon'. I'll try and update this later.
Nick
-----Nick Whitelegg <Nick.Whitelegg at solent.ac.uk> wrote: -----
To: talk-gb at openstreetmap.org
From: Nick Whitelegg <Nick.Whitelegg at solent.ac.uk>
Date: 09/05/2011 12:26PM
Subject: Re: [Talk-GB] OS grid positions
I have PHP code to do this, it was based on the "JEEPS" C library.
It's available
http://www.free-map.org.uk/svn/freemap/lib/latlong.php
Also available is Jcoord, JScoord and PHPcoord from Jonathan Stott (www.jstott.me.uk/jcoord). Note this is GPL, not LGPL, and therefore can only be used in GPL compatible software though he does dual-licence under a commercial licence.
Nick
-----TimSC <mapping at sheerman-chase.org.uk> wrote: -----
To: talk-gb at openstreetmap.org
From: TimSC <mapping at sheerman-chase.org.uk>
Date: 09/05/2011 12:02PM
Subject: Re: [Talk-GB] OS grid positions
ael,
The OS national grid has been around for a long time and has been
adjusted and tweaked as measurement accuracy has improved. The official
transform from the national grid (OSGB36) to GPS lat lon (WGS84) is
known as OSTN02. OSTN02 uses a large look up table to account for the
strange shape of OSGB36. There are of course various mathematical
approximations of OSTN02 which are easier to use. I am not sure which
transformation Garmin uses but it seems to be accurate enough.
Various software libraries exist to do the conversion. I have played
with the perl library Geo::Coordinates::OSTN02 and ported it to python,
if you are interested.
Regards,
TimSC
On 09/05/11 11:44, ael wrote:
> I have been encouraging a friend to use OSM. He has just mailed in
> puzzlement after trying to find an OS grid reference (presumably
> looking at mapnik).
>
> I saw http://help.openstreetmap.org/questions/2056/using-the-ordnance-survey-national-grid-with-openstreetmap
> but just converting a single grid reference to a good approximation to
> (lat,long) isn't *that* difficult, surely? My Garmin does it a less than
> a ms or so with very low computing power.
>
> Or am I being naive?
>
> ael
>
_______________________________________________
Talk-GB mailing list
Talk-GB at openstreetmap.org
http://lists.openstreetmap.org/listinfo/talk-gb
=_______________________________________________
Talk-GB mailing list
Talk-GB at openstreetmap.org
http://lists.openstreetmap.org/listinfo/talk-gb
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/talk-gb/attachments/20110509/7255d5f6/attachment.html>
More information about the Talk-GB
mailing list