GIS::Distance::Formula::Polar - Polar coordinate flat-earth distance calculations. (BROKEN)


GIS-Distance documentation  | view source Contained in the GIS-Distance distribution.

Index


NAME

Top

GIS::Distance::Formula::Polar - Polar coordinate flat-earth distance calculations. (BROKEN)

DESCRIPTION

Top

Supposedly this is a formula to better calculate distances at the poles.

Normally this module is not used directly. Instead GIS::Distance is used which in turn interfaces with the various formula classes.

BROKEN

Top

While implimented, this formula has not been tested much. If you use it PLEASE share your results with the author. I've tested the results of this formula versus Vincenty and it appears that this formula is broken (or the implementation is) as you can see in 02_polar.t.

FORMULA

Top

  a = pi/2 - lat1
  b = pi/2 - lat2
  c = sqrt( a^2 + b^2 - 2 * a * b * cos(lon2 - lon1) )
  d = R * c

METHODS

Top

distance

This method is called by GIS::Distance's distance() method.

SEE ALSO

Top

GIS::Distanc

AUTHOR

Top

Aran Clary Deltac <bluefeet@cpan.org>

LICENSE

Top

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.


GIS-Distance documentation  | view source Contained in the GIS-Distance distribution.