public class TLcdUTMGridSystem extends Object
TLcdUTMGrid
reference for a specific point
or UTM zone.Modifier and Type | Field and Description |
---|---|
static double |
NORTH_LAT_LIMIT
The northern limit for the valid UTM area.
|
static double |
SOUTH_LAT_LIMIT
The southern limit for the valid UTM area.
|
Constructor and Description |
---|
TLcdUTMGridSystem()
Creates a new
TLcdUTMGridSystem for the WGS84 geodetic datum. |
TLcdUTMGridSystem(ILcdGeodeticDatum aGeodeticDatum)
Creates a new
TLcdUTMGridSystem for the given geodetic datum. |
Modifier and Type | Method and Description |
---|---|
ILcdGeodeticDatum |
getGeodeticDatum()
Returns the used geodetic datum.
|
TLcdUTMGrid |
getUTMGrid(ILcdPoint aLLP)
Returns the
TLcdUTMGrid for the given lon lat point. |
TLcdUTMGrid |
getUTMGrid(int aZone,
boolean aNorth)
Returns the
TLcdUTMGrid for the given zone. |
static boolean |
inLonLatBounds(ILcdPoint aLLP)
Checks if an
ILcdPoint is inside the valid area of the UTM grid system. |
static int |
retrieveZone(ILcdPoint aLLP)
Returns the UTM zone for the given point.
|
public static final double NORTH_LAT_LIMIT
public static final double SOUTH_LAT_LIMIT
public TLcdUTMGridSystem()
TLcdUTMGridSystem
for the WGS84 geodetic datum.
The TLcdUTMGrid
instances returned by this class will contain
this datum.public TLcdUTMGridSystem(ILcdGeodeticDatum aGeodeticDatum)
TLcdUTMGridSystem
for the given geodetic datum.
The TLcdUTMGrid
instances returned by this class will contain
this datum.aGeodeticDatum
- a geodetic datum.public ILcdGeodeticDatum getGeodeticDatum()
public TLcdUTMGrid getUTMGrid(int aZone, boolean aNorth)
TLcdUTMGrid
for the given zone.aZone
- a given zone, should lie in the interval [1,60]aNorth
- true
to return the utm grid for the northern hemisphere,
and false
otherwise.TLcdUTMGrid
for the given zone.public TLcdUTMGrid getUTMGrid(ILcdPoint aLLP) throws TLcdOutOfBoundsException
TLcdUTMGrid
for the given lon lat point.aLLP
- a given lon lat point.TLcdUTMGrid
for the given lon lat pointTLcdOutOfBoundsException
- when the given lon lat point is outside the bounds
of the UTM grid system.public static int retrieveZone(ILcdPoint aLLP) throws TLcdOutOfBoundsException
aLLP
- a given lon lat point.TLcdOutOfBoundsException
- when the given lon lat point is outside the bounds
of the UTM grid system.public static boolean inLonLatBounds(ILcdPoint aLLP)
ILcdPoint
is inside the valid area of the UTM grid system.aLLP
- the point to check for.