Jump to content

Recommended Posts

Posted (edited)

I've have the following formulae to convert latitude and longitude to UTM:

 

lon_utm = lon * 20037508.34 / 180

lat_utm = Math.log(Math.tan((90 + lat) * Math.PI / 360)) / (Math.PI / 180) * 20037508.34 / 180

 

I need the equivalent formulae to reverse this. Longitude I can do:

 

lon = lon_utm / 20037508.34 * 180

 

but I'm completely stuck on latitude (I'm a programmer not a mathematician!)

 

Can anybody give me some help or point me in the right direction please?

Edited by mossoi
Posted

You are using some nonstandard terminology. As far as I can tell, UMC means United Methodist Church. Note: 20037508.34 is pi times the radius of the Earth.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.