GProjMercator Class Reference

[libgfc Index] [libgfc Hierarchy] [Headers]


Mercator projection class More...

#include <src/gproj.h>

Inherits: GMapProj

Public Members


NOP GProjMercator(double r_maj, double r_min, double c_lon, double c_lat, double false_east, double false_north) [public]

constructor

Parameters:
c_lon/c_lat central longitude/latitude (must be radians).

Result init(double r_maj, double r_min, double c_lon, double c_lat, double x_false, double y_false) [public]

initialize for the Mercator projection. Must be called before any foward/inverse conversion can happen, if the object is created using the constructor with no parameters.

Parameters:
uses same parameter as in second constructor.

Result forward(double lon, double lat, double& x, double& y) [public]

Forward conversion from (longitude,latitude) to Mercator coordinates in meters.

Parameters:
(lon, lat) MUST be radians!!!

Result inverse(double x, double y, double& lon, double& lat) [public]

Inverse conversion from Mercator coordinates to (longitude, latitude). (x,y) must be in meters; and (lon, lat) will be in radians.


Documentation generated by lqian@lqian-sun on Wed Jul 14 09:36:10 EDT 1999
Kdoc