Package edu.cnu.mdi.mapping.util
Class UTMCoordinate
java.lang.Object
edu.cnu.mdi.mapping.util.UTMCoordinate
Immutable Universal Transverse Mercator coordinate.
Normal instances contain an easting, northing, longitudinal zone, and
latitude-band letter. An instance created with
UTMCoordinate(boolean) can instead represent a geographic location
outside the latitude range supported by UTM.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionUTMCoordinate(boolean outsideRange) Constructs a UTM coordinate representing an out-of-range location.UTMCoordinate(double e, double n, int z, char l) Constructs a UTM coordinate with the given parameters. -
Method Summary
-
Field Details
-
easting
public final double eastingEasting in meters. -
northing
public final double northingNorthing in meters. -
zone
public final int zoneLongitudinal UTM zone in the range 1–60. -
letter
public final char letterUTM latitude-band letter.
-
-
Constructor Details
-
UTMCoordinate
public UTMCoordinate(double e, double n, int z, char l) Constructs a UTM coordinate with the given parameters.- Parameters:
e- the easting value in metersn- the northing value in metersz- the UTM zone number (1-60)l- the latitude band letter (C-X, excluding I and O)
-
UTMCoordinate
public UTMCoordinate(boolean outsideRange) Constructs a UTM coordinate representing an out-of-range location.- Parameters:
outsideRange- whether this coordinate should be formatted as outside the supported UTM latitude range
-
-
Method Details