#include <spk.h>
Public Member Functions | |
SPK (double x0=200000., double y0=600000.) | |
constructor | |
virtual const char * | map_name () const |
get map projection name | |
conversion routines | |
conversion between geodetic and map coordinates | |
void | geo_to_map (double b, double l, double &y, double &x) const |
convert geodetic into map coordinates | |
void | map_to_geo (double y, double x, double &b, double &l) const |
convert map into geodetic coordinates |
Conversion routines for Schweizer Projektionskoordinaten (Swiss oblique Mercator projection). Reference ellipsoid: Bessel. Reference point: Bern. This projection is based upon three steps:
For references see PDF document doc/refsysd.pdf.
GCL::SPK::SPK | ( | double | x0 = 200000. , |
|
double | y0 = 600000. | |||
) | [inline] |
constructor
Constructor with default offsets for the reference system LV03 x0=200000 and y0=600000. For LV95 use the offsets x0=1200000 and y0=2600000.
References GCL::Projection::_b0, GCL::Projection::_l0, GCL::Projection::_x0, GCL::Projection::_y0, GCL::Projection::x0(), and GCL::Projection::y0().
void GCL::SPK::geo_to_map | ( | double | b, | |
double | l, | |||
double & | y, | |||
double & | x | |||
) | 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, GCL::Projection::_l0, GCL::Projection::_x0, and GCL::Projection::_y0.
void GCL::SPK::map_to_geo | ( | double | y, | |
double | x, | |||
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, and GCL::Projection::_l0.