Unoffical empeg BBS

Quick Links: Empeg FAQ | RioCar.Org | Hijack | BigDisk Builder | jEmplode | emphatic
Repairs: Repairs

Topic Options
#202120 - 02/02/2004 19:41 Mathematical Genius Needed!
foxtrot_xray
addict

Registered: 03/03/2002
Posts: 687
Loc: Atlanta, Georgia
I'm not too bad at math, but.. this is a little over my head.

Can someone look here, specifically, the first two equations (the first, starting with E=, and the second one, starting with N =.) into, like, English? (Heck, Canadian or American would work, too!)

Basically, I'm trying to make a function (in PHP, to be exact, althou that doesn't matter here) to convert WSG894 decimal degrees to UTM coordinates.

I realize some of these are constants, depending on what dataset one is using. So, to the best of my knowledge, for my settings (WGS84), my constants are, from this page::
a = 6378137;
1/f = 298.25722;
e'^2 = 0.0066943800699
e = 0.0818191913305
...

Anyways, there's just ALOT there. I think if I keep working at it, I'll get it hammered down, but any pointers would be appreciated.

I ain't no genius.
Me.
_________________________
Mike 'Fox' Morrey 128BPM@124MPH. Love it! 2002 BRG Mini Cooper

Top
#202121 - 02/02/2004 22:26 Re: Mathematical Genius Needed! [Re: foxtrot_xray]
TigerJimmy
old hand

Registered: 15/02/2002
Posts: 1049
I don't know about the math, but maybe some sample code will help?

Top
#202122 - 03/02/2004 02:29 Re: Mathematical Genius Needed! [Re: foxtrot_xray]
Roger
carpal tunnel

Registered: 18/01/2000
Posts: 5680
Loc: London, UK
Forget doing it by hand. Just link with a copy of proj.4:

http://www.remotesensing.org/proj
_________________________
-- roger

Top
#202123 - 03/02/2004 09:04 Re: Mathematical Genius Needed! [Re: TigerJimmy]
foxtrot_xray
addict

Registered: 03/03/2002
Posts: 687
Loc: Atlanta, Georgia
Ooh, hey! Both you guys rock! Perfect! I can read thru it, then make the changes I need to (to make it PHP compatable.

Thanks!
Me.
_________________________
Mike 'Fox' Morrey 128BPM@124MPH. Love it! 2002 BRG Mini Cooper

Top