Home  |  About Us  |  Link To Us  |  FAQ  |  Contact

GIS::Distance::Polar 0.01001

Date Added: September 22, 2010  |  Visits: 1.190

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 * c METHODS distance 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: No special requirements Platforms: Linux Keyword: Can Do,  Coordinate,  Distance,  Gis,  Gisdistancepolar,  Libraries,  Polar,  Polar Coordinate,  Programming Users rating: 0/10