public class Coordinate
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
DEGPRECISION |
static int |
E |
static int |
LAT |
static int |
LNG |
static int |
MINPRECISION |
static int |
N |
static int |
S |
static int |
W |
Constructor and Description |
---|
Coordinate(double decCoordinate,
int coOrdinate)
Constructor
|
Coordinate(int deg,
float minsDecMins,
int coOrdinate,
int quad)
Constructor
|
Coordinate(java.lang.String coOrdinate)
This constructor takes a coordinate in the ALRS formats i.e
38∞31.64'N for lat, and 28∞19.12'W for long
Note: ALRS positions are occasionally written with the decimal minutes
apostrophe in the 'wrong' place and with a non CP1252 compliant decimal character.
|
Modifier and Type | Method and Description |
---|---|
double |
decVal()
Returns the coordinate's decimal value
|
java.lang.String |
toStringDec()
Prints out a coordinate as a string
|
java.lang.String |
toStringDegMin()
Prints out a coordinate as a string
|
public static final int MINPRECISION
public static final int DEGPRECISION
public static final int LAT
public static final int LNG
public static final int E
public static final int S
public static final int W
public static final int N
public Coordinate(int deg, float minsDecMins, int coOrdinate, int quad) throws InvalidPositionException
deg
- minsDecMins
- coOrdinate
- quad
- InvalidPositionException
public Coordinate(double decCoordinate, int coOrdinate) throws InvalidPositionException
decCoordinate
- coOrdinate
- InvalidPositionException
public Coordinate(java.lang.String coOrdinate) throws InvalidPositionException
coOrdinate
- InvalidPositionException
public java.lang.String toStringDegMin()
public java.lang.String toStringDec()
public double decVal()