public class PolarStereographic extends AbstractProj
In the proj.4 library, the code "stere" covers several variants of the Stereographic projection, depending on the latitude of natural origin (parameter lat_0).
In this file, only the polar case is implemented. This corresponds to EPSG:9810 (Polar Stereographic Variant A) and EPSG:9829 (Polar Stereographic Variant B).
It is required, that the latitude of natural origin has the value +/-90 degrees.
This class has been derived from the implementation of the Geotools project; git 8cbf52d, org.geotools.referencing.operation.projection.PolarStereographic at the time of migration.
References:
Modifier and Type | Field and Description |
---|---|
private static double |
EPSILON
Maximum difference allowed when comparing real numbers.
|
private static double |
ITERATION_TOLERANCE
Difference allowed in iterative computations.
|
private double |
k0
A constant used in the transformations.
|
private static int |
MAXIMUM_ITERATIONS
Maximum number of iterations for iterative computations.
|
(package private) boolean |
southPole
true if this projection is for the south pole, or false
if it is for the north pole. |
Constructor and Description |
---|
PolarStereographic() |
Modifier and Type | Method and Description |
---|---|
Bounds |
getAlgorithmBounds()
Return the bounds where this projection is applicable.
|
java.lang.String |
getName()
Replies a human readable name of this projection.
|
java.lang.String |
getProj4Id()
Replies the Proj.4 identifier.
|
void |
initialize(ProjParameters params)
Initialize the projection using the provided parameters.
|
double[] |
invproject(double x,
double y)
Convert east/north to lat/lon.
|
double[] |
project(double y,
double x)
Convert lat/lon to east/north.
|
cphi2, invMlfn, isGeographic, mlfn, msfn, tsfn
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
lonIsLinearToEast
private static final int MAXIMUM_ITERATIONS
private static final double ITERATION_TOLERANCE
private static final double EPSILON
private double k0
boolean southPole
true
if this projection is for the south pole, or false
if it is for the north pole.public PolarStereographic()
public java.lang.String getName()
Proj
public java.lang.String getProj4Id()
Proj
null
.public void initialize(ProjParameters params) throws ProjectionConfigurationException
Proj
initialize
in interface Proj
initialize
in class AbstractProj
params
- The projection parametersProjectionConfigurationException
- in case parameters are not suitablepublic double[] project(double y, double x)
Proj
y
- the latitude in radiansx
- the longitude in radianspublic double[] invproject(double x, double y)
Proj
x
- east value in meters, divided by the semi major axis of the ellipsoidy
- north value in meters, divided by the semi major axis of the ellipsoidpublic Bounds getAlgorithmBounds()
Proj