J
Joseph Geretz
I need to calculate miles per degree longitude, which obviously depends on
latitude since lines of longitude converge at the poles. Via Google, I've
come up with the following calculation:
private const double MilesPerDegLat = 69.04;
private const double EarthRadiusMiles = 3963.1676;
private static double PiDiv180 = Math.PI / 180;
double MilesPerDegLon = MilesPerDegLat * Math.Cos(Latitude * PiDiv180)
I'm not fluent at all in the trigonometric branches of mathematics and I'd
appreciate it if you could check my math for me.
I basically got this from:
http://answers.google.com/answers/threadview?id=577262
I'm using the formula which Steven expressed as: 69.1703234283616 *
COS(Lat*0.0174532925199433) with just one difference. I am using the value
69.06 for miles per degree latitude. Steven is using 69.17. I understand
that the Earth is not a perfect sphere and I'm under the impression that the
value 69.06 is the correct average to use. On the other hand, my
calculations will be exclusively confined to North America. Should I be
using a value of 69.17?
I'm also curious about how this formula works without taking into account
the Earth's radius. Again, I'm not fluent by any means in trigonometry, but
I'd been assuming that the Earth's radius would play a role in the
calculation. Also, I'm curious as to why the formula proposed directly prior
to the final solution doesn't work:
(pi/180) * R * cosA where R is the radius of the earth in miles and A is the
degree latitude.
For some reason this didn't work for me, but perhaps I encoded it
incorrectly. If this should work and is deemed to be more precise than the
claculation I've implemented I'll happily substitute it.
Thanks for your help!
- Joseph Geretz -
latitude since lines of longitude converge at the poles. Via Google, I've
come up with the following calculation:
private const double MilesPerDegLat = 69.04;
private const double EarthRadiusMiles = 3963.1676;
private static double PiDiv180 = Math.PI / 180;
double MilesPerDegLon = MilesPerDegLat * Math.Cos(Latitude * PiDiv180)
I'm not fluent at all in the trigonometric branches of mathematics and I'd
appreciate it if you could check my math for me.
I basically got this from:
http://answers.google.com/answers/threadview?id=577262
I'm using the formula which Steven expressed as: 69.1703234283616 *
COS(Lat*0.0174532925199433) with just one difference. I am using the value
69.06 for miles per degree latitude. Steven is using 69.17. I understand
that the Earth is not a perfect sphere and I'm under the impression that the
value 69.06 is the correct average to use. On the other hand, my
calculations will be exclusively confined to North America. Should I be
using a value of 69.17?
I'm also curious about how this formula works without taking into account
the Earth's radius. Again, I'm not fluent by any means in trigonometry, but
I'd been assuming that the Earth's radius would play a role in the
calculation. Also, I'm curious as to why the formula proposed directly prior
to the final solution doesn't work:
(pi/180) * R * cosA where R is the radius of the earth in miles and A is the
degree latitude.
For some reason this didn't work for me, but perhaps I encoded it
incorrectly. If this should work and is deemed to be more precise than the
claculation I've implemented I'll happily substitute it.
Thanks for your help!
- Joseph Geretz -