fr.imag.adele.util.position
Class PositionUtil
java.lang.Object
fr.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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
PositionUtil
public PositionUtil()
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)