NASA World Wind

gov.nasa.worldwind.geom.coords
Class PolarConverter

java.lang.Object
  extended by gov.nasa.worldwind.geom.coords.PolarConverter

public class PolarConverter
extends java.lang.Object

Ported to Java from the NGA GeoTrans polarst.c and polarst.h code.


Field Summary
static long POLAR_EASTING_ERROR
           
static long POLAR_NORTHING_ERROR
           
static long POLAR_RADIUS_ERROR
           
 
Method Summary
static long Convert_Geodetic_To_Polar_Stereographic(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.
static long Convert_Polar_Stereographic_To_Geodetic(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.
static double getEasting()
           
static double getLatitude()
           
static double getLongitude()
           
static double getNorthing()
           
static 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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

Convert_Geodetic_To_Polar_Stereographic

public static long Convert_Geodetic_To_Polar_Stereographic(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 radians
Longitude - Longitude, in radians
Returns:
error code

Convert_Polar_Stereographic_To_Geodetic

public static long Convert_Polar_Stereographic_To_Geodetic(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 meters
Northing - Northing (Y), in meters
Returns:
error code

getEasting

public static double getEasting()

getLatitude

public static double getLatitude()
Returns:
Latitude in radians.

getLongitude

public static double getLongitude()
Returns:
Longitude in radians.

getNorthing

public static double getNorthing()

setPolarStereographicParameters

public static 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 meters
f - Flattening of ellipsoid
Latitude_of_True_Scale - Latitude of true scale, in radians
Longitude_Down_from_Pole - Longitude down from pole, in radians
False_Easting - Easting (X) at center of projection, in meters
False_Northing - Northing (Y) at center of projection, in meters
Returns:
error code

NASA World Wind