Package gov.nasa.worldwind.geom.coords
Class PolarCoordConverter
- java.lang.Object
-
- gov.nasa.worldwind.geom.coords.PolarCoordConverter
-
public class PolarCoordConverter extends java.lang.Object
Ported to Java from the NGA GeoTrans polarst.c and polarst.h code.
-
-
Field Summary
Fields Modifier and Type Field Description static long
POLAR_EASTING_ERROR
static long
POLAR_NORTHING_ERROR
static long
POLAR_RADIUS_ERROR
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
convertGeodeticToPolarStereographic(double Latitude, double Longitude)
The function Convert_Geodetic_To_Polar_Stereographic converts geodetic coordinates (latitude and longitude) to Polar Stereographic coordinates (easting and northing), according to the current ellipsoid and Polar Stereographic projection parameters.long
convertPolarStereographicToGeodetic(double Easting, double Northing)
The function Convert_Polar_Stereographic_To_Geodetic converts Polar Stereographic coordinates (easting and northing) to geodetic coordinates (latitude and longitude) according to the current ellipsoid and Polar Stereographic projection Parameters.double
getEasting()
double
getLatitude()
double
getLongitude()
double
getNorthing()
long
setPolarStereographicParameters(double a, double f, double Latitude_of_True_Scale, double Longitude_Down_from_Pole, double False_Easting, double False_Northing)
The function setPolarStereographicParameters receives the ellipsoid parameters and Polar Stereograpic projection parameters as inputs, and sets the corresponding state variables.
-
-
-
Field Detail
-
POLAR_EASTING_ERROR
public static final long POLAR_EASTING_ERROR
- See Also:
- Constant Field Values
-
POLAR_NORTHING_ERROR
public static final long POLAR_NORTHING_ERROR
- See Also:
- Constant Field Values
-
POLAR_RADIUS_ERROR
public static final long POLAR_RADIUS_ERROR
- See Also:
- Constant Field Values
-
-
Method Detail
-
setPolarStereographicParameters
public long setPolarStereographicParameters(double a, double f, double Latitude_of_True_Scale, double Longitude_Down_from_Pole, double False_Easting, double False_Northing)
The function setPolarStereographicParameters receives the ellipsoid parameters and Polar Stereograpic projection parameters as inputs, and sets the corresponding state variables. If any errors occur, error code(s) are returned by the function, otherwise POLAR_NO_ERROR is returned.- Parameters:
a
- Semi-major axis of ellipsoid, in metersf
- Flattening of ellipsoidLatitude_of_True_Scale
- Latitude of true scale, in radiansLongitude_Down_from_Pole
- Longitude down from pole, in radiansFalse_Easting
- Easting (X) at center of projection, in metersFalse_Northing
- Northing (Y) at center of projection, in meters- Returns:
- error code
-
convertGeodeticToPolarStereographic
public long convertGeodeticToPolarStereographic(double Latitude, double Longitude)
The function Convert_Geodetic_To_Polar_Stereographic converts geodetic coordinates (latitude and longitude) to Polar Stereographic coordinates (easting and northing), according to the current ellipsoid and Polar Stereographic projection parameters. If any errors occur, error code(s) are returned by the function, otherwise POLAR_NO_ERROR is returned.- Parameters:
Latitude
- latitude, in radiansLongitude
- Longitude, in radians- Returns:
- error code
-
getEasting
public double getEasting()
-
getNorthing
public double getNorthing()
-
convertPolarStereographicToGeodetic
public long convertPolarStereographicToGeodetic(double Easting, double Northing)
The function Convert_Polar_Stereographic_To_Geodetic converts Polar Stereographic coordinates (easting and northing) to geodetic coordinates (latitude and longitude) according to the current ellipsoid and Polar Stereographic projection Parameters. If any errors occur, the code(s) are returned by the function, otherwise POLAR_NO_ERROR is returned.- Parameters:
Easting
- Easting (X), in metersNorthing
- Northing (Y), in meters- Returns:
- error code
-
getLatitude
public double getLatitude()
- Returns:
- Latitude in radians.
-
getLongitude
public double getLongitude()
- Returns:
- Longitude in radians.
-
-