fr.imag.adele.util.position
Class PositionUtil

java.lang.Object
  extended byfr.imag.adele.util.position.PositionUtil

public class PositionUtil
extends Object

This class provides formatting utilities for position However this class should be redesigned as a class extending java.text.Format such as java.text.NumberFormat or java.text.DateFormat

Author:
donsez

Field Summary
static boolean LATTITUDE_N
           
static boolean LATTITUDE_S
           
static boolean LONGITUDE_E
           
static boolean LONGITUDE_W
           
 
Constructor Summary
PositionUtil()
           
 
Method Summary
static double convertDDDMMSSHtoWG84(int degrees, int minutes, int seconds, boolean h)
           
static String convertRadtoHeading(double angleInRad)
           
static double convertRadtoWG84(double angleInRad)
           
static int convertWG84toDDD(double wg84)
           
static String convertWG84toDDDMMSS(double angleInwg84)
           
static boolean convertWG84toH(double wg84)
           
static String convertWG84toLattitudeDDDMMSSH(double angleInwg84)
           
static String convertWG84toLongitudeDDDMMSSH(double angleInwg84)
           
static int convertWG84toMM(double wg84)
           
static double convertWG84toRad(double angleInwg84)
           
static int convertWG84toSS(double wg84)
           
static StringBuffer toText(StringBuffer sb, org.osgi.util.position.Position position)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LATTITUDE_N

public static final boolean LATTITUDE_N
See Also:
Constant Field Values

LATTITUDE_S

public static final boolean LATTITUDE_S
See Also:
Constant Field Values

LONGITUDE_E

public static final boolean LONGITUDE_E
See Also:
Constant Field Values

LONGITUDE_W

public static final boolean LONGITUDE_W
See Also:
Constant Field Values
Constructor Detail

PositionUtil

public PositionUtil()
Method Detail

toText

public static StringBuffer toText(StringBuffer sb,
                                  org.osgi.util.position.Position position)

convertWG84toDDD

public static int convertWG84toDDD(double wg84)

convertWG84toMM

public static int convertWG84toMM(double wg84)

convertWG84toSS

public static int convertWG84toSS(double wg84)

convertWG84toH

public static boolean convertWG84toH(double wg84)

convertWG84toDDDMMSS

public static String convertWG84toDDDMMSS(double angleInwg84)

convertWG84toLattitudeDDDMMSSH

public static String convertWG84toLattitudeDDDMMSSH(double angleInwg84)

convertWG84toLongitudeDDDMMSSH

public static String convertWG84toLongitudeDDDMMSSH(double angleInwg84)

convertDDDMMSSHtoWG84

public static double convertDDDMMSSHtoWG84(int degrees,
                                           int minutes,
                                           int seconds,
                                           boolean h)

convertWG84toRad

public static double convertWG84toRad(double angleInwg84)

convertRadtoWG84

public static double convertRadtoWG84(double angleInRad)

convertRadtoHeading

public static String convertRadtoHeading(double angleInRad)