Web Images Videos Maps News Shopping Gmail more »
Recently Visited Groups | Help | Sign in
Google Groups Home
HOWTO: Convert between OSGR to WGS84
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  8 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
www.gtraffic.info  
View profile  
(1 user)  More options Jul 23 2005, 8:57 am
From: "www.gtraffic.info" <wee_ma...@yahoo.co.uk>
Date: Sat, 23 Jul 2005 05:57:40 -0700
Local: Sat, Jul 23 2005 8:57 am
Subject: HOWTO: Convert between OSGR to WGS84
Hi,

After seeing a discussion a while back about javascript and converting
OSGRs to latitude and longitude I decided to convert some of the Python
code I was using.

Here is my javascript GeoPosition class which will allow to convert
between OSGR and WGS84.

http://ccgi.arutherford.plus.com/code/javascript/geoposition/

For example

var testZone = "SP";
var testEasting = 8721;
var testNorthing = 91231;

// Create object
var position = new GeoPosition();

// Convert test point to lat and long. The converted values are
// accesses through position.latitude and position.longitude

position.osgbToLL(testZone, testEasting, testNorthing);

// As a sanity check convert back to OSGR and compare. The osgr values
// accessed through
// position.osgbGridSquare,
// position.osgbEasting and position.osgbNorthing

position.llToOSGB(position.latitude, position.longitude);

I hope someone finds this useful.

Cheers
Al.


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
barryhunter  
View profile  
 More options Jul 23 2005, 4:14 pm
From: "barryhunter" <answ...@barryhunter.co.uk>
Date: Sat, 23 Jul 2005 13:14:29 -0700
Local: Sat, Jul 23 2005 4:14 pm
Subject: Re: HOWTO: Convert between OSGR to WGS84
Note however that this is only converting GB Grid-References to/from
OSGB36 Lat/Long. Therefore the Lat/Long is not true WGS84, typically
the difference can be upto about 200meters. However it depends on your
application wheather this is a problem...

Its possible to use the Hermert Transformation to convert OSGB36
Lat/Long to/from WGS84 Lat/Long, with a typical accuarcy of around 7
meters. I helped convert code from the Ordnance Survey to PHP for an
open source project www.geograph.co.uk, here:
http://cvs.sourceforge.net/viewcvs.py/geograph/geograph/libs/geograph...
(can also do Irish Grid Refernces!)

A fellow developer has ported this code to a OO javascript version if
anybody is interested. (similar to the code above)

Hope this helps,

Barry

- www.nearby.org.uk - online coordinate conversion, location searches,
links, maps and more
- www.geograph.co.uk - photograph every square 1km of the British Isles!


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
www.gtraffic.info  
View profile  
 More options Jul 23 2005, 11:20 pm
From: "www.gtraffic.info" <wee_ma...@yahoo.co.uk>
Date: Sat, 23 Jul 2005 20:20:48 -0700
Local: Sat, Jul 23 2005 11:20 pm
Subject: Re: HOWTO: Convert between OSGR to WGS84
Hi Barry,

Is it possible to post links to your "fellow developer"'s code then
please?

Al.


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Richard Kagerer  
View profile  
 More options Jul 26 2005, 2:38 am
From: "Richard Kagerer" <r...@leapbeyond.com>
Date: Mon, 25 Jul 2005 23:38:14 -0700
Local: Tues, Jul 26 2005 2:38 am
Subject: Re: HOWTO: Convert between OSGR to WGS84
Anyone notice the getLatLngWGS84() function in the API?

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Richard Kagerer  
View profile  
 More options Jul 26 2005, 2:38 am
From: "Richard Kagerer" <r...@leapbeyond.com>
Date: Mon, 25 Jul 2005 23:38:28 -0700
Local: Tues, Jul 26 2005 2:38 am
Subject: Re: HOWTO: Convert between OSGR to WGS84
(it's undocumented)

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
barryhunter  
View profile  
 More options Jul 27 2005, 5:11 am
From: "barryhunter" <answ...@barryhunter.co.uk>
Date: Wed, 27 Jul 2005 02:11:23 -0700
Local: Wed, Jul 27 2005 5:11 am
Subject: Re: HOWTO: Convert between OSGR to WGS84
Sorry that should of 'is working on' porting to Javascript, its not
quite finished, we'll see about putting it online for 'beta' testing...

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
barryhunter  
View profile  
 More options Jul 27 2005, 5:31 am
From: "barryhunter" <answ...@barryhunter.co.uk>
Date: Wed, 27 Jul 2005 02:31:42 -0700
Local: Wed, Jul 27 2005 5:31 am
Subject: Re: HOWTO: Convert between OSGR to WGS84
Very interesting, doesnt seem to be callable directly but at least
helps to confirm that they using WGS84 as their datum...


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
www.gtraffic.info  
View profile  
 More options Jul 29 2005, 7:16 am
From: "www.gtraffic.info" <wee_ma...@yahoo.co.uk>
Date: Fri, 29 Jul 2005 04:16:04 -0700
Local: Fri, Jul 29 2005 7:16 am
Subject: Re: HOWTO: Convert between OSGR to WGS84

barryhunter wrote:
> Sorry that should of 'is working on' porting to Javascript, its not
> quite finished, we'll see about putting it online for 'beta' testing...

Cool. I have seen the OS spreadsheet before but was put off by it's
complexity. Might have another look if I get time.

Al.


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google