Package com.luciad.view.map
Class TLcdUTMZone
java.lang.Object
com.luciad.view.map.TLcdUTMZone
- All Implemented Interfaces:
Cloneable
The
TLcdUTMZone
extends Object
, it represents a UTM-MGRS zone.
The TLcdUTMZone
is determined by its zoneID,
which is a value between 0 and 60.
Due to different values for the false northing for the northern and the southern hemisphere all methods
involving calculations require a parameter indicating for which hemisphere the calculations
should be performed. Accepted values for the hemisphere are NORTHERN_HEMISPHERE
and
SOUTHERN_HEMISPHERE
.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Constant indicating that calculations should be performed for the northern hemisphere.static final int
Constant indicating that calculations should be performed for the southern hemisphere. -
Constructor Summary
ConstructorDescriptionConstructs aTLcdUTMZone
for zone 30.TLcdUTMZone
(int aZoneID) Constructs aTLcdUTMZone
for the given zone ID.TLcdUTMZone
(int aZoneID, ILcdGeodeticDatum aGeodeticDatum) -
Method Summary
Modifier and TypeMethodDescriptionvoid
calculateLabelsStringSFCT
(double aX, double aY, int aHemiSphere, String[] aString) Returns the labels of the four 100km zones surrounding a UTM-MGRS 100km grid point of theTLcdUTMZone
.void
calculateLabelsStringSFCT
(double aX, double aY, String[] aString) Deprecated.use the method with the hemisphere parameter.void
calculateXBoundsSFCT
(double aY, double[] aLimitSFCT) Deprecated.use the method with the hemisphere parameter.void
calculateXBoundsSFCT
(double aY, double[] aLimitSFCT, int aHemiSphere) Calculates the west and east bounds of thisTLcdUTMZone
at the northing aY.void
calculateXBoundsSFCT
(double aX, double aY, double[] aLimitSFCT) Deprecated.void
calculateXBoundsSFCT
(double aX, double aY, double[] aLimitSFCT, int aHemiSphere) Given a northing aY, calculates the west and east bounds of thisTLcdUTMZone
in grid coordinates.clone()
boolean
contains
(double aX, double aY) Deprecated.use the method with the hemisphere.boolean
contains
(double aX, double aY, int aHemiSphere) Returns true if the coordinate is within the UTM zone, false otherwise..double
The centralMeridian is calculated on the basis of the zoneID.getGeodeticBounds
(int aHemisphere) Calculates the geodetic bounds of this UTM zone.Deprecated.use the method that passes the hemisphere.getMaxXYBounds
(int aHemiSphere) Calculates the maximal bounds in XY of thisTLcdUTMZone
.Returns anILcdModelReference
representing the grid of the UTM zone.getUTMGridReference
(int aHemiSphere) int
The zoneID fully identifies theTLcdUTMZone
.void
grid2lonlatSFCT
(double aX, double aY, int aHemiSphere, ILcd3DEditablePoint a3DEditablePointSFCT) Transformation of grid coordinate to LonLatHeight coordinate.void
grid2lonlatSFCT
(double aX, double aY, ILcd3DEditablePoint a3DEditablePointSFCT) Deprecated.use the method with the hemisphere parameter.void
grid2worldSFCT
(double aX, double aY, int aHemiSphere, ILcd3DEditablePoint a3DEditablePointSFCT) Transformation of grid coordinate to world coordinate.void
grid2worldSFCT
(double aX, double aY, ILcd3DEditablePoint a3DEditablePointSFCT) Deprecated.void
lonlat2gridSFCT
(double aLon, double aLat, int aHemiSphere, ILcd2DEditablePoint aXYPointSFCT) Transformation of lon-lat coordinate to grid coordinate.void
lonlat2gridSFCT
(double aLon, double aLat, ILcd2DEditablePoint aXYPointSFCT) Deprecated.void
setZoneID
(int aZoneID) Sets the new zoneID for thisTLcdUTMZone
.void
world2gridSFCT
(ILcdPoint aWorldPoint, int aHemiSphere, ILcd2DEditablePoint aXYPointSFCT) Transformation of world coordinate to grid coordinate.void
world2gridSFCT
(ILcdPoint aWorldPoint, ILcd2DEditablePoint aXYPointSFCT) Deprecated.
-
Field Details
-
NORTHERN_HEMISPHERE
public static final int NORTHERN_HEMISPHEREConstant indicating that calculations should be performed for the northern hemisphere.- See Also:
-
SOUTHERN_HEMISPHERE
public static final int SOUTHERN_HEMISPHEREConstant indicating that calculations should be performed for the southern hemisphere.- See Also:
-
-
Constructor Details
-
TLcdUTMZone
public TLcdUTMZone()Constructs aTLcdUTMZone
for zone 30. -
TLcdUTMZone
public TLcdUTMZone(int aZoneID) Constructs aTLcdUTMZone
for the given zone ID.- Parameters:
aZoneID
- the ID of the zone.
-
TLcdUTMZone
-
-
Method Details
-
getCentralMeridian
public double getCentralMeridian()The centralMeridian is calculated on the basis of the zoneID.- Returns:
- the centralMeridian of this
TLcdUTMZone
.
-
getZoneID
public int getZoneID()The zoneID fully identifies theTLcdUTMZone
. Its value is located between 0 and 60.- Returns:
- the zoneID of this
TLcdUTMZone
. - See Also:
-
setZoneID
public void setZoneID(int aZoneID) Sets the new zoneID for thisTLcdUTMZone
.- Parameters:
aZoneID
- the new zoneID for thisTLcdUTMZone
.- See Also:
-
getMaxXYBounds
Deprecated.use the method that passes the hemisphere. This method calls that method with the norther hemisphere as parameter.Calculates the maximal bounds in XY of thisTLcdUTMZone
. This means that points with coordinates outside of the range of this bounds (i.e. with x larger than the width, or y larger than the height), will certainly be outside this zone. This does not guarantee however that points within these bounds are within this zone.- Returns:
ILcd2DEditableBounds
which represents the maximum bounds.
-
getMaxXYBounds
Calculates the maximal bounds in XY of thisTLcdUTMZone
. This means that points with coordinates outside of the range of this bounds (i.e. with x larger than the width, or y larger than the height), will certainly be outside this zone. This does not guarantee however that points within these bounds are within this zone.- Returns:
ILcd2DEditableBounds
which represents the maximum bounds.
-
getGeodeticBounds
Calculates the geodetic bounds of this UTM zone. Geodetic points with coordinates outside of the range of this bounds will certainly be outside this zone. This does not guarantee however that points within these bounds are within this zone.- Parameters:
aHemisphere
- the hemisphere- Returns:
ILcd2DEditableBounds
which represents the maximum bounds.
-
calculateXBoundsSFCT
Deprecated.use the method with the hemisphere parameter. This method calls the method, passing the northern hemisphere.Given a northing aY, calculates the west and east bounds of thisTLcdUTMZone
.- Parameters:
aY
- the northing at which to calculate the bounds.aLimitSFCT
- array where the west and east bounds will be stored, respectively at index 0 and at index 1.- Throws:
TLcdOutOfBoundsException
- if the specified coordinate is out of bounds.
-
calculateXBoundsSFCT
public void calculateXBoundsSFCT(double aX, double aY, double[] aLimitSFCT) throws TLcdOutOfBoundsException Deprecated.Given an easting aX and a northing aY, calculates the west and east bounds of thisTLcdUTMZone
at the northing level aY,.- Parameters:
aX
- the easting of the point which' northing is aY.aY
- the northing at which to calculate the bounds.aLimitSFCT
- array where the west and east bounds will be stored, respectively at index 0 and at index 1.- Throws:
TLcdOutOfBoundsException
- if the specified coordinate is out of bounds.
-
calculateXBoundsSFCT
public void calculateXBoundsSFCT(double aY, double[] aLimitSFCT, int aHemiSphere) throws TLcdOutOfBoundsException Calculates the west and east bounds of thisTLcdUTMZone
at the northing aY.- Parameters:
aY
- the northing at which to calculate the bounds.aLimitSFCT
- array where the west and east bounds will be stored, respectively at index 0 and at index 1.- Throws:
TLcdOutOfBoundsException
- if the specified coordinate is out of bounds.
-
calculateXBoundsSFCT
public void calculateXBoundsSFCT(double aX, double aY, double[] aLimitSFCT, int aHemiSphere) throws TLcdOutOfBoundsException Given a northing aY, calculates the west and east bounds of thisTLcdUTMZone
in grid coordinates.- Parameters:
aY
- the northing at which to calculate the bounds.aLimitSFCT
- array where the west and east bounds will be stored, respectively at index 0 and at index 1.- Throws:
TLcdOutOfBoundsException
- if the specified coordinate is out of bounds.
-
contains
Deprecated.use the method with the hemisphere.Returns true if the coordinate is within the UTM zone, false otherwise..- Parameters:
aX
- the x-coordinate.aY
- the y-coordinate.- Returns:
- true if the coordinate is within the UTM zone, false otherwise.
- Throws:
TLcdOutOfBoundsException
- if the coordinate is out of bounds.
-
contains
Returns true if the coordinate is within the UTM zone, false otherwise..- Parameters:
aX
- the x-coordinate.aY
- the y-coordinate.- Returns:
- true if the coordinate is within the UTM zone, false otherwise.
- Throws:
TLcdOutOfBoundsException
- if the coordinate is out of bounds.
-
grid2lonlatSFCT
public void grid2lonlatSFCT(double aX, double aY, ILcd3DEditablePoint a3DEditablePointSFCT) throws TLcdOutOfBoundsException Deprecated.use the method with the hemisphere parameter. This method calls that method with the northern hemisphere as parameter.Transformation of grid coordinate to LonLatHeight coordinate.- Parameters:
aX
- x-value of the grid coordinate.aY
- y-value of the grid coordinate.a3DEditablePointSFCT
- the resulting lon-lat-height coordinate as side effect.- Throws:
TLcdOutOfBoundsException
- The grid point(aX,aY)
is outside the valid area of the projection.
-
grid2lonlatSFCT
public void grid2lonlatSFCT(double aX, double aY, int aHemiSphere, ILcd3DEditablePoint a3DEditablePointSFCT) throws TLcdOutOfBoundsException Transformation of grid coordinate to LonLatHeight coordinate.- Parameters:
aX
- x-value of the grid coordinate.aY
- y-value of the grid coordinate.a3DEditablePointSFCT
- the resulting lon-lat-height coordinate as side effect.- Throws:
TLcdOutOfBoundsException
- The grid point(aX,aY)
is outside the valid area of the projection.
-
grid2worldSFCT
public void grid2worldSFCT(double aX, double aY, ILcd3DEditablePoint a3DEditablePointSFCT) throws TLcdOutOfBoundsException Deprecated.Transformation of grid coordinate to world coordinate.- Parameters:
aX
- x-value of the grid coordinate.aY
- y-value of the grid coordinate.a3DEditablePointSFCT
- the resulting world coordinate as side effect.- Throws:
TLcdOutOfBoundsException
- The grid point(aX,aY)
is outside the valid area of the projection.
-
grid2worldSFCT
public void grid2worldSFCT(double aX, double aY, int aHemiSphere, ILcd3DEditablePoint a3DEditablePointSFCT) throws TLcdOutOfBoundsException Transformation of grid coordinate to world coordinate.- Parameters:
aX
- x-value of the grid coordinate.aY
- y-value of the grid coordinate.a3DEditablePointSFCT
- the resulting world coordinate as side effect.- Throws:
TLcdOutOfBoundsException
- The grid point(aX,aY)
is outside the valid area of the projection.
-
world2gridSFCT
public void world2gridSFCT(ILcdPoint aWorldPoint, ILcd2DEditablePoint aXYPointSFCT) throws TLcdOutOfBoundsException Deprecated.Transformation of world coordinate to grid coordinate.- Parameters:
aWorldPoint
- the world coordinate.aXYPointSFCT
- the resulting grid coordinate as side effect.- Throws:
TLcdOutOfBoundsException
- The world point(aX,aY)
is outside the valid area of the projection.
-
world2gridSFCT
public void world2gridSFCT(ILcdPoint aWorldPoint, int aHemiSphere, ILcd2DEditablePoint aXYPointSFCT) throws TLcdOutOfBoundsException Transformation of world coordinate to grid coordinate.- Parameters:
aWorldPoint
- the world coordinate.aXYPointSFCT
- the resulting grid coordinate as side effect.- Throws:
TLcdOutOfBoundsException
- The world point(aX,aY)
is outside the valid area of the projection.
-
lonlat2gridSFCT
public void lonlat2gridSFCT(double aLon, double aLat, ILcd2DEditablePoint aXYPointSFCT) throws TLcdOutOfBoundsException Deprecated.Transformation of lon-lat coordinate to grid coordinate.- Parameters:
aLon
- the longitude of the coordinate.aLat
- the latitude of the coordinate.aXYPointSFCT
- the resulting grid coordinate as side effect.- Throws:
TLcdOutOfBoundsException
- The lon-lat point(aLon,aLat)
is outside the valid area of the projection.
-
lonlat2gridSFCT
public void lonlat2gridSFCT(double aLon, double aLat, int aHemiSphere, ILcd2DEditablePoint aXYPointSFCT) throws TLcdOutOfBoundsException Transformation of lon-lat coordinate to grid coordinate.- Parameters:
aLon
- the longitude of the coordinate.aLat
- the latitude of the coordinate.aXYPointSFCT
- the resulting grid coordinate as side effect.- Throws:
TLcdOutOfBoundsException
- The lon-lat point(aLon,aLat)
is outside the valid area of the projection.
-
calculateLabelsStringSFCT
Deprecated.use the method with the hemisphere parameter. This method calls that method passing the northern hemisphere.Returns the labels of the four 100km zones surrounding a UTM-MGRS 100km grid point of theTLcdUTMZone
.- Parameters:
aX
- the easting of the grid point.aY
- the northing of the grid point.aString
- an array ofString
which will contain the resulting labels: aString[0] : zone to the north-east of the grid point. aString[1] : zone to the south-east of the grid point. aString[2] : zone to the south-west of the grid point. aString[3] : zone to the north-west of the grid point.
-
calculateLabelsStringSFCT
Returns the labels of the four 100km zones surrounding a UTM-MGRS 100km grid point of theTLcdUTMZone
.- Parameters:
aX
- the easting of the grid point.aY
- the northing of the grid point.aString
- an array ofString
which will contain the resulting labels: aString[0] : zone to the north-east of the grid point. aString[1] : zone to the south-east of the grid point. aString[2] : zone to the south-west of the grid point. aString[3] : zone to the north-west of the grid point.
-
getUTMGrid
Returns anILcdModelReference
representing the grid of the UTM zone.- Returns:
- an
ILcdModelReference
representing the grid of the UTM zone.
-
getUTMGridReference
-
clone
-