Public Member Functions | Static Public Attributes
GeographicLib::PolarStereographic Class Reference

Polar Stereographic Projection. More...

#include <GeographicLib/PolarStereographic.hpp>

List of all members.

Public Member Functions

 PolarStereographic (double a, double invf, double k0) throw ()
void Forward (bool northp, double lat, double lon, double &x, double &y, double &gamma, double &k) const throw ()
void Reverse (bool northp, double x, double y, double &lat, double &lon, double &gamma, double &k) const throw ()

Static Public Attributes

static const PolarStereographic UPS

Detailed Description

Polar Stereographic Projection.

Implementation taken from the report,

This is a straightforward implementation of the equations in Snyder except that Newton's method is used to invert the projection.


Constructor & Destructor Documentation

GeographicLib::PolarStereographic::PolarStereographic ( double  a,
double  invf,
double  k0 
) throw ()

Constructor for a ellipsoid radius a (meters), inverse flattening invf, and central scale factor k0. Setting invf <= 0 implies invf = inf or flattening = 0 (i.e., a sphere).

Definition at line 22 of file PolarStereographic.cpp.


Member Function Documentation

void GeographicLib::PolarStereographic::Forward ( bool  northp,
double  lat,
double  lon,
double &  x,
double &  y,
double &  gamma,
double &  k 
) const throw ()

Convert from latitude lat (degrees) and longitude lon (degrees) to polar stereographic easting x (meters) and northing y (meters). The projection is about the pole given by northp (false means south, true means north). Also return the meridian convergence gamma (degrees) and the scale k. No false easting or northing is added. lat should be in the range (-90, 90] for northp = true and in the range [-90, 90) for northp = false; lon should be in the range [-180, 360].

Definition at line 38 of file PolarStereographic.cpp.

References GeographicLib::Constants::degree().

Referenced by GeographicLib::UTMUPS::Forward().

void GeographicLib::PolarStereographic::Reverse ( bool  northp,
double  x,
double  y,
double &  lat,
double &  lon,
double &  gamma,
double &  k 
) const throw ()

Convert from polar stereogrphic easting x (meters) and northing y (meters) to latitude lat (degrees) and longitude lon (degrees) . The hemisphere is given by northp (false means south, true means north). Also return the meridian convergence gamma (degrees) and the scale k. No false easting or northing is added. The value of lon returned is in the range [-180, 180).

Definition at line 58 of file PolarStereographic.cpp.

References GeographicLib::Constants::pi(), and GeographicLib::Constants::degree().

Referenced by GeographicLib::UTMUPS::Reverse().


Member Data Documentation

A global instantiation of PolarStereographic with the WGS84 ellipsoid and the UPS scale factor. However, unlike UPS, no false easting or northing is added.

Definition at line 80 of file PolarStereographic.hpp.


The documentation for this class was generated from the following files: