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
ConstructorsConstructorDescriptionCreates a newTLcdUPSGridSystemfor the WGS84 geodetic datum.TLcdUPSGridSystem(ILcdGeodeticDatum aGeodeticDatum) Creates a newTLcdUPSGridSystemfor the given geodetic datum. -
Method Summary
Modifier and TypeMethodDescriptionReturns the used geodetic datum.getUPSGrid(boolean aNorth) Returns theTLcdUPSGridfor the given zone.getUPSGrid(ILcdPoint aLLP) Returns theTLcdUPSGridfor the given lon lat point.static booleaninLonLatBounds(ILcdPoint aLLP) Checks if anILcdPointis inside the valid area of the UPS grid system.static booleanretrieveZone(ILcdPoint aLLP) Returns the UPS zone for the given point.
-
Constructor Details
-
TLcdUPSGridSystem
public TLcdUPSGridSystem()Creates a newTLcdUPSGridSystemfor the WGS84 geodetic datum. TheTLcdUPSGridinstances returned by this class will contain this datum. -
TLcdUPSGridSystem
Creates a newTLcdUPSGridSystemfor the given geodetic datum. TheTLcdUPSGridinstances 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 theTLcdUPSGridfor the given zone.- Parameters:
aNorth-trueto return the ups grid for the northern hemisphere, andfalseotherwise.- Returns:
- the
TLcdUPSGridfor the given zone.
-
getUPSGrid
Returns theTLcdUPSGridfor the given lon lat point.- Parameters:
aLLP- a given lon lat point.- Returns:
- the
TLcdUPSGridfor 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 anILcdPointis 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_LIMITor smaller than of equal toTLcdUTMGridSystem.SOUTH_LAT_LIMIT.
-