Package com.luciad.transformation
Class TLcdGridReferenceUtil
java.lang.Object
com.luciad.transformation.TLcdGridReferenceUtil
- Direct Known Subclasses:
TLcdGridRefUtil
Utility class to transform between grid coordinates and lon-lat coordinates that use the same geodetic datum.
Note: it is advised to use the transformation API instead of this class to transform between references.
See for example:
-
Constructor Summary
ConstructorDescriptionConstructor ofnull
ILcdGridReference
.TLcdGridReferenceUtil
(ILcdGridReference aGridReference) Constructor ofTLcdGridReferenceUtil
with a givenILcdGridReference
aModelRefGrid
. -
Method Summary
Modifier and TypeMethodDescriptionGets theILcdGridReference
of thisTLcdGridReferenceUtil
.Deprecated.void
grid2lonlatSFCT
(double aX, double aY, ILcd2DEditablePoint a2DEditablePointSFCT) Transformation of a grid coordinate to a lonLatHeight coordinate.void
grid2lonlatSFCT
(ILcdPoint aXYPoint, ILcd2DEditablePoint a2DEditablePointSFCT) Transformation of a grid coordinate to a lonLatHeight coordinate.void
grid2worldSFCT
(double aX, double aY, ILcd2DEditablePoint a2DEditablePointSFCT) Transformation of a grid coordinate to a world coordinate.void
lonlat2gridSFCT
(double aLon, double aLat, ILcd2DEditablePoint aXYPointSFCT) Transformation of a lon-lat coordinate to a grid coordinate.void
lonlatheight2gridSFCT
(ILcdPoint aLLHPoint, ILcd2DEditablePoint aXYPointSFCT) Transformation of a lon-lat coordinate to a grid coordinate.void
setGridReference
(ILcdGridReference aGridReference) Sets theILcdGridReference
of thisTLcdGridReferenceUtil
toaGridReference
.void
setModelRefGrid
(ILcdGridReference aGridReference) Deprecated.Replaced by the methodsetGridReference
since V 3.0.void
world2gridSFCT
(ILcdPoint aWorldPoint, ILcd2DEditablePoint aXYPointSFCT) Transformation of a world coordinate to a grid coordinate.
-
Constructor Details
-
TLcdGridReferenceUtil
public TLcdGridReferenceUtil()Constructor ofnull
ILcdGridReference
. -
TLcdGridReferenceUtil
Constructor ofTLcdGridReferenceUtil
with a givenILcdGridReference
aModelRefGrid
.- Parameters:
aGridReference
- the grid reference to use.
-
-
Method Details
-
getGridReference
Gets theILcdGridReference
of thisTLcdGridReferenceUtil
.- Returns:
- the
ILcdGridReference
of thisTLcdGridReferenceUtil
. - See Also:
-
setGridReference
Sets theILcdGridReference
of thisTLcdGridReferenceUtil
toaGridReference
.- Parameters:
aGridReference
- the new grid reference system to be used.- See Also:
-
setModelRefGrid
Deprecated.Replaced by the methodsetGridReference
since V 3.0.Sets theILcdGridReference
ofTLcdGridReferenceUtil
toaModelRefGrid
.- Parameters:
aGridReference
- the new grid reference system to be used.- See Also:
-
getModelRefGrid
Deprecated.Replaced by the methodgetGridReference
since V 3.0.Gets theILcdGridReference
of theTLcdGridReferenceUtil
.- Returns:
- the
ILcdGridReference
of theTLcdGridReferenceUtil
. - See Also:
-
grid2worldSFCT
Transformation of a grid coordinate to a world coordinate.- Parameters:
aX
- the x-value of the grid coordinate.aY
- the y-value of the grid coordinate.a2DEditablePointSFCT
- the resulting world coordinate as side effect.
-
world2gridSFCT
Transformation of a world coordinate to a grid coordinate.- Parameters:
aWorldPoint
- a world coordinate.aXYPointSFCT
- the resulting grid coordinate as side effect.
-
grid2lonlatSFCT
public void grid2lonlatSFCT(double aX, double aY, ILcd2DEditablePoint a2DEditablePointSFCT) throws TLcdOutOfBoundsException Transformation of a grid coordinate to a lonLatHeight coordinate.- Parameters:
aX
- the x-value of the grid coordinate.aY
- the y-value of the grid coordinate.a2DEditablePointSFCT
- the resulting geodetic coordinate on the ellipsoid of the grid reference as side effect.- Throws:
TLcdOutOfBoundsException
- The grid point(aX,aY)
is outside the valid area of the projection.
-
grid2lonlatSFCT
public void grid2lonlatSFCT(ILcdPoint aXYPoint, ILcd2DEditablePoint a2DEditablePointSFCT) throws TLcdOutOfBoundsException Transformation of a grid coordinate to a lonLatHeight coordinate.- Parameters:
aXYPoint
- a grid coordinate.a2DEditablePointSFCT
- the resulting geodetic coordinate on the ellipsoid of the grid reference as side effect.- Throws:
TLcdOutOfBoundsException
- The grid point(aX,aY)
is outside the valid area of the projection.
-
lonlat2gridSFCT
public void lonlat2gridSFCT(double aLon, double aLat, ILcd2DEditablePoint aXYPointSFCT) throws TLcdOutOfBoundsException Transformation of a lon-lat coordinate to a grid coordinate.- Parameters:
aLon
- longitude of the geodetic coordinate (in degrees).aLat
- latitude of the geodetic coordinate (in degrees).aXYPointSFCT
- the resulting grid coordinate as side effect.- Throws:
TLcdOutOfBoundsException
- The lon-lat point(aLon,aLat)
is outside the valid area of the projection.
-
lonlatheight2gridSFCT
public void lonlatheight2gridSFCT(ILcdPoint aLLHPoint, ILcd2DEditablePoint aXYPointSFCT) throws TLcdOutOfBoundsException Transformation of a lon-lat coordinate to a grid coordinate.- Parameters:
aLLHPoint
- a geodetic 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.
-
getGridReference
since V 3.0.