GIS::Distance::Polar

GIS::Distance::Polar can do Polar coordinate flat-earth distance calculations.
Download

GIS::Distance::Polar Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Aran Clary Deltac
  • Publisher web site:
  • http://search.cpan.org/~bluefeet/GIS-Distance-0.01001/lib/GIS/Distance/Polar.pm

GIS::Distance::Polar Tags


GIS::Distance::Polar Description

GIS::Distance::Polar can do Polar coordinate flat-earth distance calculations. GIS::Distance::Polar can do Polar coordinate flat-earth distance calculations.SYNOPSIS my $calc = GIS::Distance::Polar->new(); my $distance = $calc->distance( $lon1, $lat1 => $lon2, $lat2 );Supposedly this is a formula to better calculate distances at the poles.While implimented, this formula has not been tested much. If you use it PLEASE share your results with the author.FORMULA a = pi/2 - lat1 b = pi/2 - lat2 c = sqrt( a^2 + b^2 - 2 * a * b * cos(lon2 - lon1) ) d = R * cMETHODSdistance my $distance = $calc->distance( $lon1, $lat1 => $lon2, $lat2 );This method accepts two lat/lon sets (in decimal degrees) and returns a Class::Measure::Length object containing the distance between the two points.Requirements:· Perl Requirements: · Perl


GIS::Distance::Polar Related Software