NETGeographicLib
1.50.1
|
.NET wrapper for GeographicLib::PolarStereographic. More...
#include <NETGeographicLib/PolarStereographic.h>
Public Member Functions | |
PolarStereographic (double a, double f, double k0) | |
PolarStereographic () | |
~PolarStereographic () | |
void | SetScale (double lat, double k) |
void | Forward (bool northp, double lat, double lon, [System::Runtime::InteropServices::Out] double% x, [System::Runtime::InteropServices::Out] double% y, [System::Runtime::InteropServices::Out] double% gamma, [System::Runtime::InteropServices::Out] double% k) |
void | Reverse (bool northp, double x, double y, [System::Runtime::InteropServices::Out] double% lat, [System::Runtime::InteropServices::Out] double% lon, [System::Runtime::InteropServices::Out] double% gamma, [System::Runtime::InteropServices::Out] double% k) |
void | Forward (bool northp, double lat, double lon, [System::Runtime::InteropServices::Out] double% x, [System::Runtime::InteropServices::Out] double% y) |
void | Reverse (bool northp, double x, double y, [System::Runtime::InteropServices::Out] double% lat, [System::Runtime::InteropServices::Out] double% lon) |
Properties | |
Inspector functions | |
double | EquatorialRadius [get] |
double | Flattening [get] |
double | CentralScale [get] |
.NET wrapper for GeographicLib::PolarStereographic.
This class allows .NET applications to access GeographicLib::PolarStereographic.
.NET wrapper for GeographicLib::PolarStereographic.
This class allows .NET applications to access GeographicLib::PolarStereographic.
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.
C# Example:
Managed C++ Example:
Visual Basic Example:
INTERFACE DIFFERENCES:
A default constructor is provided that assumes WGS84 parameters and a UPS scale factor.
The EquatorialRadius, Flattening, and CentralScale functions are implemented as properties.
Definition at line 48 of file PolarStereographic.h.
NETGeographicLib::PolarStereographic::PolarStereographic | ( | double | a, |
double | f, | ||
double | k0 | ||
) |
Constructor for a ellipsoid with
[in] | a | equatorial radius (meters). |
[in] | f | flattening of ellipsoid. Setting f = 0 gives a sphere. Negative f gives a prolate ellipsoid. |
[in] | k0 | central scale factor. |
GeographicErr | if a, (1 − f ) a, or k0 is not positive. |
NETGeographicLib::PolarStereographic::PolarStereographic | ( | ) |
An instantiation of PolarStereographic with the WGS84 ellipsoid and the UPS scale factor.
Referenced by ~PolarStereographic().
|
inline |
The destructor calls the finalizer.
Definition at line 79 of file PolarStereographic.h.
References PolarStereographic().
void NETGeographicLib::PolarStereographic::SetScale | ( | double | lat, |
double | k | ||
) |
Set the scale for the projection.
[in] | lat | (degrees) assuming northp = true. |
[in] | k | scale at latitude lat |
GeographicErr | k is not positive. |
GeographicErr | if lat is not in (−90°, 90°] or this object was created with the default constructor. |
void NETGeographicLib::PolarStereographic::Forward | ( | bool | northp, |
double | lat, | ||
double | lon, | ||
[System::Runtime::InteropServices::Out] double% | x, | ||
[System::Runtime::InteropServices::Out] double% | y, | ||
[System::Runtime::InteropServices::Out] double% | gamma, | ||
[System::Runtime::InteropServices::Out] double% | k | ||
) |
Forward projection, from geographic to polar stereographic.
[in] | northp | the pole which is the center of projection (true means north, false means south). |
[in] | lat | latitude of point (degrees). |
[in] | lon | longitude of point (degrees). |
[out] | x | easting of point (meters). |
[out] | y | northing of point (meters). |
[out] | gamma | meridian convergence at point (degrees). |
[out] | k | scale of projection at point. |
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.
void NETGeographicLib::PolarStereographic::Reverse | ( | bool | northp, |
double | x, | ||
double | y, | ||
[System::Runtime::InteropServices::Out] double% | lat, | ||
[System::Runtime::InteropServices::Out] double% | lon, | ||
[System::Runtime::InteropServices::Out] double% | gamma, | ||
[System::Runtime::InteropServices::Out] double% | k | ||
) |
Reverse projection, from polar stereographic to geographic.
[in] | northp | the pole which is the center of projection (true means north, false means south). |
[in] | x | easting of point (meters). |
[in] | y | northing of point (meters). |
[out] | lat | latitude of point (degrees). |
[out] | lon | longitude of point (degrees). |
[out] | gamma | meridian convergence at point (degrees). |
[out] | k | scale of projection at point. |
No false easting or northing is added. The value of lon returned is in the range [−180°, 180°).
void NETGeographicLib::PolarStereographic::Forward | ( | bool | northp, |
double | lat, | ||
double | lon, | ||
[System::Runtime::InteropServices::Out] double% | x, | ||
[System::Runtime::InteropServices::Out] double% | y | ||
) |
PolarStereographic::Forward without returning the convergence and scale.
void NETGeographicLib::PolarStereographic::Reverse | ( | bool | northp, |
double | x, | ||
double | y, | ||
[System::Runtime::InteropServices::Out] double% | lat, | ||
[System::Runtime::InteropServices::Out] double% | lon | ||
) |
PolarStereographic::Reverse without returning the convergence and scale.
|
get |
Definition at line 157 of file PolarStereographic.h.
|
get |
Definition at line 163 of file PolarStereographic.h.
|
get |
The central scale for the projection. This is the value of k0 used in the constructor and is the scale at the pole unless overridden by PolarStereographic::SetScale.
Definition at line 170 of file PolarStereographic.h.