1 package tim.prune.data;
4 * Class to represent a Latitude Coordinate
6 public class Latitude extends Coordinate
10 * @param inString string value from file
12 public Latitude(String inString)
20 * @param inValue value of coordinate
21 * @param inFormat format to use
23 protected Latitude(double inValue, int inFormat)
25 super(inValue, inFormat);
26 _cardinal = inValue < 0.0 ? SOUTH : NORTH;
31 * Turn the given character into a cardinal
32 * @see tim.prune.data.Coordinate#getCardinal(char)
34 protected int getCardinal(char inChar)
36 // Latitude recognises N, S and -
43 cardinal = NORTH; break;
47 cardinal = SOUTH; break;
56 * Make a new Latitude object
57 * @see tim.prune.data.Coordinate#makeNew(double, int)
59 protected Coordinate makeNew(double inValue, int inFormat)
61 return new Latitude(inValue, inFormat);