.NET wrapper for GeographicLib::PolarStereographic. More...
#include <PolarStereographic.h>
Public Member Functions | |
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 | Forward (bool northp, double lat, double lon, [System::Runtime::InteropServices::Out] double%x, [System::Runtime::InteropServices::Out] double%y) |
PolarStereographic (double a, double f, double k0) | |
PolarStereographic () | |
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 | Reverse (bool northp, double x, double y, [System::Runtime::InteropServices::Out] double%lat, [System::Runtime::InteropServices::Out] double%lon) |
void | SetScale (double lat, double k) |
~PolarStereographic () | |
Public Attributes | |
Inspector functions | |
property double | MajorRadius { double get() |
property double | Flattening { double get() |
property double | CentralScale { double get() |
Private Member Functions | |
!PolarStereographic (void) | |
Private Attributes | |
GeographicLib::PolarStereographic * | m_pPolarStereographic |
.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 MajorRadius, Flattening, and CentralScale functions are implemented as properties.
Definition at line 48 of file PolarStereographic.h.
|
private |
Definition at line 21 of file dotnet/NETGeographicLib/PolarStereographic.cpp.
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. |
Definition at line 31 of file dotnet/NETGeographicLib/PolarStereographic.cpp.
PolarStereographic::PolarStereographic | ( | ) |
An instantiation of PolarStereographic with the WGS84 ellipsoid and the UPS scale factor.
Definition at line 48 of file dotnet/NETGeographicLib/PolarStereographic.cpp.
|
inline |
The destructor calls the finalizer.
Definition at line 79 of file PolarStereographic.h.
void 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.
Definition at line 75 of file dotnet/NETGeographicLib/PolarStereographic.cpp.
void 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.
Definition at line 107 of file dotnet/NETGeographicLib/PolarStereographic.cpp.
void 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°).
Definition at line 91 of file dotnet/NETGeographicLib/PolarStereographic.cpp.
void 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.
Definition at line 118 of file dotnet/NETGeographicLib/PolarStereographic.cpp.
void 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. |
Definition at line 62 of file dotnet/NETGeographicLib/PolarStereographic.cpp.
property double NETGeographicLib::PolarStereographic::CentralScale { double 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.
property double NETGeographicLib::PolarStereographic::Flattening { double get() |
Definition at line 163 of file PolarStereographic.h.
|
private |
Definition at line 52 of file PolarStereographic.h.
property double NETGeographicLib::PolarStereographic::MajorRadius { double get() |
Definition at line 157 of file PolarStereographic.h.