public class TLcdUPSGridSystem extends Object
TLcdUPSGrid
reference for a specific point
or hemisphere.Constructor and Description |
---|
TLcdUPSGridSystem()
Creates a new
TLcdUPSGridSystem for the WGS84 geodetic datum. |
TLcdUPSGridSystem(ILcdGeodeticDatum aGeodeticDatum)
Creates a new
TLcdUPSGridSystem for the given geodetic datum. |
Modifier and Type | Method and Description |
---|---|
ILcdGeodeticDatum |
getGeodeticDatum()
Returns the used geodetic datum.
|
TLcdUPSGrid |
getUPSGrid(boolean aNorth)
Returns the
TLcdUPSGrid for the given zone. |
TLcdUPSGrid |
getUPSGrid(ILcdPoint aLLP)
Returns the
TLcdUPSGrid for the given lon lat point. |
static boolean |
inLonLatBounds(ILcdPoint aLLP)
Checks if an
ILcdPoint is inside the valid area of the UPS grid system. |
static boolean |
retrieveZone(ILcdPoint aLLP)
Returns the UPS zone for the given point.
|
public TLcdUPSGridSystem()
TLcdUPSGridSystem
for the WGS84 geodetic datum.
The TLcdUPSGrid
instances returned by this class will contain
this datum.public TLcdUPSGridSystem(ILcdGeodeticDatum aGeodeticDatum)
TLcdUPSGridSystem
for the given geodetic datum.
The TLcdUPSGrid
instances returned by this class will contain
this datum.aGeodeticDatum
- a geodetic datum.public ILcdGeodeticDatum getGeodeticDatum()
public TLcdUPSGrid getUPSGrid(boolean aNorth)
TLcdUPSGrid
for the given zone.aNorth
- true
to return the ups grid for the northern hemisphere,
and false
otherwise.TLcdUPSGrid
for the given zone.public TLcdUPSGrid getUPSGrid(ILcdPoint aLLP) throws TLcdOutOfBoundsException
TLcdUPSGrid
for the given lon lat point.aLLP
- a given lon lat point.TLcdUPSGrid
for the given lon lat pointTLcdOutOfBoundsException
- when the given lon lat point is outside the bounds
of the UPS grid system.public static boolean retrieveZone(ILcdPoint aLLP) throws TLcdOutOfBoundsException
true
,
the UPS zone is the northern zone. If the returned value is false
, it is
the southern zone.aLLP
- a given lon lat point.TLcdOutOfBoundsException
- when the given lon lat point is outside the bounds
of the UPS grid system.public static boolean inLonLatBounds(ILcdPoint aLLP)
ILcdPoint
is inside the valid area of the UPS grid system.aLLP
- the point to check for.TLcdUTMGridSystem.NORTH_LAT_LIMIT
or smaller than of equal to
TLcdUTMGridSystem.SOUTH_LAT_LIMIT
.