Package uk.ac.rdg.resc.edal.dataset.cdm
Class RotatedOffsetProjection
- java.lang.Object
-
- ucar.unidata.geoloc.ProjectionImpl
-
- uk.ac.rdg.resc.edal.dataset.cdm.RotatedOffsetProjection
-
- All Implemented Interfaces:
Serializable
,ucar.unidata.geoloc.Projection
public class RotatedOffsetProjection extends ucar.unidata.geoloc.ProjectionImpl
AProjection
which defines a rotated and offset grid in an arbitrary CRS. This does not support all of the methods ofProjection
, but rather only those which are required byCdmTransformedGrid
. To clarify, coordinates in this projection need to be rotated clockwise by an angle and then shifted by an offset before they are then in the correct geographic position in the supplied CRS. They therefore need to be transformed from that CRS to CRS:84 to give a lat-lon position.- Author:
- Guy Griffiths
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description RotatedOffsetProjection(double originX, double originY, double angle, org.opengis.referencing.crs.CoordinateReferenceSystem crs)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ucar.unidata.geoloc.ProjectionImpl
constructCopy()
boolean
crossSeam(ucar.unidata.geoloc.ProjectionPoint pt1, ucar.unidata.geoloc.ProjectionPoint pt2)
boolean
equals(Object obj)
int
hashCode()
ucar.unidata.geoloc.ProjectionPoint
latLonToProj(ucar.unidata.geoloc.LatLonPoint latlon, ucar.unidata.geoloc.ProjectionPointImpl destPoint)
String
paramsToString()
ucar.unidata.geoloc.LatLonPoint
projToLatLon(ucar.unidata.geoloc.ProjectionPoint ppt, ucar.unidata.geoloc.LatLonPointImpl destPoint)
-
Methods inherited from class ucar.unidata.geoloc.ProjectionImpl
addParameter, addParameter, addParameter, findProjectionParameter, getClassName, getDefaultMapArea, getDefaultMapAreaLL, getHeader, getName, getProjectionParameters, getProjectionTypeLabel, isLatLon, latLonToProj, latLonToProj, latLonToProj, latLonToProj, latLonToProj, latLonToProj, latLonToProj, latLonToProj, latLonToProj, latLonToProj, latLonToProjBB, projToLatLon, projToLatLon, projToLatLon, projToLatLon, projToLatLon, projToLatLon, projToLatLonBB, projToLatLonBBold, setDefaultMapArea, setName, toString
-
-
-
-
Constructor Detail
-
RotatedOffsetProjection
public RotatedOffsetProjection(double originX, double originY, double angle, org.opengis.referencing.crs.CoordinateReferenceSystem crs)
- Parameters:
originX
- The origin in the x-dimension, in the supplied CRS, at which this rotated grid startsoriginY
- The origin in the y-dimension, in the supplied CRS, at which this rotated grid startsangle
- The CLOCKWISE angle by which the grid is rotatedcrs
- TheCoordinateReferenceSystem
of the grid
-
-
Method Detail
-
latLonToProj
public ucar.unidata.geoloc.ProjectionPoint latLonToProj(ucar.unidata.geoloc.LatLonPoint latlon, ucar.unidata.geoloc.ProjectionPointImpl destPoint)
- Specified by:
latLonToProj
in interfaceucar.unidata.geoloc.Projection
- Specified by:
latLonToProj
in classucar.unidata.geoloc.ProjectionImpl
-
projToLatLon
public ucar.unidata.geoloc.LatLonPoint projToLatLon(ucar.unidata.geoloc.ProjectionPoint ppt, ucar.unidata.geoloc.LatLonPointImpl destPoint)
- Specified by:
projToLatLon
in interfaceucar.unidata.geoloc.Projection
- Specified by:
projToLatLon
in classucar.unidata.geoloc.ProjectionImpl
-
equals
public boolean equals(Object obj)
- Specified by:
equals
in interfaceucar.unidata.geoloc.Projection
- Specified by:
equals
in classucar.unidata.geoloc.ProjectionImpl
-
constructCopy
public ucar.unidata.geoloc.ProjectionImpl constructCopy()
- Specified by:
constructCopy
in classucar.unidata.geoloc.ProjectionImpl
-
paramsToString
public String paramsToString()
- Specified by:
paramsToString
in interfaceucar.unidata.geoloc.Projection
- Specified by:
paramsToString
in classucar.unidata.geoloc.ProjectionImpl
-
crossSeam
public boolean crossSeam(ucar.unidata.geoloc.ProjectionPoint pt1, ucar.unidata.geoloc.ProjectionPoint pt2)
- Specified by:
crossSeam
in interfaceucar.unidata.geoloc.Projection
- Specified by:
crossSeam
in classucar.unidata.geoloc.ProjectionImpl
-
-