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
FieldsModifier and TypeFieldDescriptionstatic final doubleThe northern limit for the valid UTM area.static final doubleThe southern limit for the valid UTM area. -
Constructor Summary
ConstructorsConstructorDescriptionCreates a newTLcdUTMGridSystemfor the WGS84 geodetic datum.TLcdUTMGridSystem(ILcdGeodeticDatum aGeodeticDatum) Creates a newTLcdUTMGridSystemfor the given geodetic datum. -
Method Summary
Modifier and TypeMethodDescriptionReturns the used geodetic datum.getUTMGrid(int aZone, boolean aNorth) Returns theTLcdUTMGridfor the given zone.getUTMGrid(ILcdPoint aLLP) Returns theTLcdUTMGridfor the given lon lat point.static booleaninLonLatBounds(ILcdPoint aLLP) Checks if anILcdPointis inside the valid area of the UTM grid system.static intretrieveZone(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 newTLcdUTMGridSystemfor the WGS84 geodetic datum. TheTLcdUTMGridinstances returned by this class will contain this datum. -
TLcdUTMGridSystem
Creates a newTLcdUTMGridSystemfor the given geodetic datum. TheTLcdUTMGridinstances 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 theTLcdUTMGridfor the given zone.- Parameters:
aZone- a given zone, should lie in the interval [1,60]aNorth-trueto return the utm grid for the northern hemisphere, andfalseotherwise.- Returns:
- the
TLcdUTMGridfor the given zone.
-
getUTMGrid
Returns theTLcdUTMGridfor the given lon lat point.- Parameters:
aLLP- a given lon lat point.- Returns:
- the
TLcdUTMGridfor 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 anILcdPointis 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.
-