Package com.luciad.view.map
Class TLcdUTMGridSystem
java.lang.Object
com.luciad.view.map.TLcdUTMGridSystem
This class can be used to retrieve a
TLcdUTMGrid
reference for a specific point
or UTM zone.- Since:
- 11.0
-
Field Summary
Modifier and TypeFieldDescriptionstatic final double
The northern limit for the valid UTM area.static final double
The southern limit for the valid UTM area. -
Constructor Summary
ConstructorDescriptionCreates a newTLcdUTMGridSystem
for the WGS84 geodetic datum.TLcdUTMGridSystem
(ILcdGeodeticDatum aGeodeticDatum) Creates a newTLcdUTMGridSystem
for the given geodetic datum. -
Method Summary
Modifier and TypeMethodDescriptionReturns the used geodetic datum.getUTMGrid
(int aZone, boolean aNorth) Returns theTLcdUTMGrid
for the given zone.getUTMGrid
(ILcdPoint aLLP) Returns theTLcdUTMGrid
for the given lon lat point.static boolean
inLonLatBounds
(ILcdPoint aLLP) Checks if anILcdPoint
is inside the valid area of the UTM grid system.static int
retrieveZone
(ILcdPoint aLLP) Returns the UTM zone for the given point.
-
Field Details
-
NORTH_LAT_LIMIT
public static final double NORTH_LAT_LIMITThe northern limit for the valid UTM area.- See Also:
-
SOUTH_LAT_LIMIT
public static final double SOUTH_LAT_LIMITThe southern limit for the valid UTM area.- See Also:
-
-
Constructor Details
-
TLcdUTMGridSystem
public TLcdUTMGridSystem()Creates a newTLcdUTMGridSystem
for the WGS84 geodetic datum. TheTLcdUTMGrid
instances returned by this class will contain this datum. -
TLcdUTMGridSystem
Creates a newTLcdUTMGridSystem
for the given geodetic datum. TheTLcdUTMGrid
instances returned by this class will contain this datum.- Parameters:
aGeodeticDatum
- a geodetic datum.
-
-
Method Details
-
getGeodeticDatum
Returns the used geodetic datum.- Returns:
- the used geodetic datum.
-
getUTMGrid
Returns theTLcdUTMGrid
for the given zone.- Parameters:
aZone
- a given zone, should lie in the interval [1,60]aNorth
-true
to return the utm grid for the northern hemisphere, andfalse
otherwise.- Returns:
- the
TLcdUTMGrid
for the given zone.
-
getUTMGrid
Returns theTLcdUTMGrid
for the given lon lat point.- Parameters:
aLLP
- a given lon lat point.- Returns:
- the
TLcdUTMGrid
for the given lon lat point - Throws:
TLcdOutOfBoundsException
- when the given lon lat point is outside the bounds of the UTM grid system.
-
retrieveZone
Returns the UTM zone for the given point.- Parameters:
aLLP
- a given lon lat point.- Returns:
- the UTM zone for the given point
- Throws:
TLcdOutOfBoundsException
- when the given lon lat point is outside the bounds of the UTM grid system.
-
inLonLatBounds
Checks if anILcdPoint
is inside the valid area of the UTM grid system.- Parameters:
aLLP
- the point to check for.- Returns:
- true if the y value of the given point is between NORTH_LAT_LIMIT and SOUTH_LAT_LIMIT.
-