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
ConstructorsConstructorDescriptionConstructor ofnullILcdGridReference.TLcdGridReferenceUtil(ILcdGridReference aGridReference) Constructor ofTLcdGridReferenceUtilwith a givenILcdGridReferenceaModelRefGrid. -
Method Summary
Modifier and TypeMethodDescriptionGets theILcdGridReferenceof thisTLcdGridReferenceUtil.Deprecated.voidgrid2lonlatSFCT(double aX, double aY, ILcd2DEditablePoint a2DEditablePointSFCT) Transformation of a grid coordinate to a lonLatHeight coordinate.voidgrid2lonlatSFCT(ILcdPoint aXYPoint, ILcd2DEditablePoint a2DEditablePointSFCT) Transformation of a grid coordinate to a lonLatHeight coordinate.voidgrid2worldSFCT(double aX, double aY, ILcd2DEditablePoint a2DEditablePointSFCT) Transformation of a grid coordinate to a world coordinate.voidlonlat2gridSFCT(double aLon, double aLat, ILcd2DEditablePoint aXYPointSFCT) Transformation of a lon-lat coordinate to a grid coordinate.voidlonlatheight2gridSFCT(ILcdPoint aLLHPoint, ILcd2DEditablePoint aXYPointSFCT) Transformation of a lon-lat coordinate to a grid coordinate.voidsetGridReference(ILcdGridReference aGridReference) Sets theILcdGridReferenceof thisTLcdGridReferenceUtiltoaGridReference.voidsetModelRefGrid(ILcdGridReference aGridReference) Deprecated.Replaced by the methodsetGridReferencesince V 3.0.voidworld2gridSFCT(ILcdPoint aWorldPoint, ILcd2DEditablePoint aXYPointSFCT) Transformation of a world coordinate to a grid coordinate.
-
Constructor Details
-
TLcdGridReferenceUtil
public TLcdGridReferenceUtil()Constructor ofnullILcdGridReference. -
TLcdGridReferenceUtil
Constructor ofTLcdGridReferenceUtilwith a givenILcdGridReferenceaModelRefGrid.- Parameters:
aGridReference- the grid reference to use.
-
-
Method Details
-
getGridReference
Gets theILcdGridReferenceof thisTLcdGridReferenceUtil.- Returns:
- the
ILcdGridReferenceof thisTLcdGridReferenceUtil. - See Also:
-
setGridReference
Sets theILcdGridReferenceof thisTLcdGridReferenceUtiltoaGridReference.- Parameters:
aGridReference- the new grid reference system to be used.- See Also:
-
setModelRefGrid
Deprecated.Replaced by the methodsetGridReferencesince V 3.0.Sets theILcdGridReferenceofTLcdGridReferenceUtiltoaModelRefGrid.- Parameters:
aGridReference- the new grid reference system to be used.- See Also:
-
getModelRefGrid
Deprecated.Replaced by the methodgetGridReferencesince V 3.0.Gets theILcdGridReferenceof theTLcdGridReferenceUtil.- Returns:
- the
ILcdGridReferenceof 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.
-
getGridReferencesince V 3.0.