NAME

Geo::ECEF - Calculates ECEF coordinates (earth centered earth fixed) from latitude, longitude and height above ellipsoid information

SYNOPSIS

use Geo::ECEF;
my $obj=Geo::ECEF->new(); #WGS84 is the default
my ($x, $y, $z)=$obj->ecef(39.197807, -77.108574, 55); #Lat (deg), Lon (deg), meters (HAE)
print "X: $x, Y: $y, Z: $z\n";

DESCRIPTION

Geo::ECEF calculates the X,Y and Z coordinates in the ECEF (earth centered earth fixed) coordinate system from latitude, longitude and height information.

The formulas were found at http://www.u-blox.ch.

This code is an object perl rewrite of a simular package by Morten Sickel, Norwegian Radiation Protection Authority

CONSTRUCTOR

new

The new() constructor.

my $obj=Geo::ECEF->new("WGS84"); #WGS84 is default

METHODS

ecef

Method returns X (meters), Y (meters), Z (meters) from lat (degrees), lon (degrees), HAE (meters).

ellipsoid

Method to set or retrieve the current ellipsoid object.

TODO

Write functions that convert from ECEF to lla

BUGS

LIMITS

AUTHORS

Michael R. Davis qw/perl michaelrdavis com/ Morten Sickel http://sickel.net/

LICENSE

Copyright (c) 2006 Michael R. Davis (mrdvt92) Copyright (c) 2005 Morten Sickel (sickel.net)

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

SEE ALSO

geo::ecef