#include <lambert2.h>
Public Member Functions | |
Lambert2 (const string &ell_name) | |
constructor with ellipsoid name | |
const char * | map_name () const |
get map projection name | |
void | std_parallel (double b1, double b2) |
set standard parallel 1 and 2 | |
void | print (ostream &os) const |
print parameters | |
conversion routines | |
conversion between geodetic and map coordinates | |
void | geo_to_map (double b, double l, double &x, double &y) const |
convert geodetic into map coordinates | |
void | map_to_geo (double x, double y, double &b, double &l) const |
convert map into geodetic coordinates | |
Private Attributes | |
double | _b1 |
standard parallel 1 | |
double | _b2 |
standard parallel 2 |
Conversion routines for Lambert Conformal Conic coordinates.
GCL::Lambert2::Lambert2 | ( | const string & | ell_name | ) | [inline] |
constructor with ellipsoid name
ell_name | name of the reference ellipsoid |
void GCL::Lambert2::geo_to_map | ( | double | b, | |
double | l, | |||
double & | x, | |||
double & | y | |||
) | const [virtual] |
convert geodetic into map coordinates
[in] | b,l | geodetic coordinates, latitude and longitude in radian |
[out] | x,y | map coordinates in meter |
Implements GCL::Projection.
References GCL::Projection::_b0, _b1, _b2, GCL::Projection::_l0, GCL::Projection::_m0, GCL::Projection::_x0, GCL::Projection::_y0, GCL::Ellipsoid::nradius(), and GCL::Ellipsoid::q().
void GCL::Lambert2::map_to_geo | ( | double | x, | |
double | y, | |||
double & | b, | |||
double & | l | |||
) | const [virtual] |
convert map into geodetic coordinates
[in] | x,y | map coordinates in meter |
[out] | b,l | geodetic coordinates, latitude and longitude in radian |
Implements GCL::Projection.
References GCL::Projection::_b0, _b1, _b2, GCL::Projection::_l0, GCL::Projection::_m0, GCL::Projection::_x0, GCL::Projection::_y0, GCL::Ellipsoid::inv_q(), GCL::Ellipsoid::nradius(), and GCL::Ellipsoid::q().