Package com.luciad.view.map
Class TLcdUPSGridSystem
java.lang.Object
com.luciad.view.map.TLcdUPSGridSystem
This class can be used to retrieve a
TLcdUPSGrid
reference for a specific point
or hemisphere.- Since:
- 11.0
-
Constructor Summary
ConstructorDescriptionCreates a newTLcdUPSGridSystem
for the WGS84 geodetic datum.TLcdUPSGridSystem
(ILcdGeodeticDatum aGeodeticDatum) Creates a newTLcdUPSGridSystem
for the given geodetic datum. -
Method Summary
Modifier and TypeMethodDescriptionReturns the used geodetic datum.getUPSGrid
(boolean aNorth) Returns theTLcdUPSGrid
for the given zone.getUPSGrid
(ILcdPoint aLLP) Returns theTLcdUPSGrid
for the given lon lat point.static boolean
inLonLatBounds
(ILcdPoint aLLP) Checks if anILcdPoint
is inside the valid area of the UPS grid system.static boolean
retrieveZone
(ILcdPoint aLLP) Returns the UPS zone for the given point.
-
Constructor Details
-
TLcdUPSGridSystem
public TLcdUPSGridSystem()Creates a newTLcdUPSGridSystem
for the WGS84 geodetic datum. TheTLcdUPSGrid
instances returned by this class will contain this datum. -
TLcdUPSGridSystem
Creates a newTLcdUPSGridSystem
for the given geodetic datum. TheTLcdUPSGrid
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.
-
getUPSGrid
Returns theTLcdUPSGrid
for the given zone.- Parameters:
aNorth
-true
to return the ups grid for the northern hemisphere, andfalse
otherwise.- Returns:
- the
TLcdUPSGrid
for the given zone.
-
getUPSGrid
Returns theTLcdUPSGrid
for the given lon lat point.- Parameters:
aLLP
- a given lon lat point.- Returns:
- the
TLcdUPSGrid
for the given lon lat point - Throws:
TLcdOutOfBoundsException
- when the given lon lat point is outside the bounds of the UPS grid system.
-
retrieveZone
Returns the UPS zone for the given point. When the returned value istrue
, the UPS zone is the northern zone. If the returned value isfalse
, it is the southern zone.- Parameters:
aLLP
- a given lon lat point.- Returns:
- the UPS zone for the given point.
- Throws:
TLcdOutOfBoundsException
- when the given lon lat point is outside the bounds of the UPS grid system.
-
inLonLatBounds
Checks if anILcdPoint
is inside the valid area of the UPS grid system.- Parameters:
aLLP
- the point to check for.- Returns:
- true if the y value of the given point is larger than or equal to
TLcdUTMGridSystem.NORTH_LAT_LIMIT
or smaller than of equal toTLcdUTMGridSystem.SOUTH_LAT_LIMIT
.
-