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.ProjectionImplAProjectionwhich 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.ProjectionImplconstructCopy()booleancrossSeam(ucar.unidata.geoloc.ProjectionPoint pt1, ucar.unidata.geoloc.ProjectionPoint pt2)booleanequals(Object obj)inthashCode()ucar.unidata.geoloc.ProjectionPointlatLonToProj(ucar.unidata.geoloc.LatLonPoint latlon, ucar.unidata.geoloc.ProjectionPointImpl destPoint)StringparamsToString()ucar.unidata.geoloc.LatLonPointprojToLatLon(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- TheCoordinateReferenceSystemof the grid
-
-
Method Detail
-
latLonToProj
public ucar.unidata.geoloc.ProjectionPoint latLonToProj(ucar.unidata.geoloc.LatLonPoint latlon, ucar.unidata.geoloc.ProjectionPointImpl destPoint)- Specified by:
latLonToProjin interfaceucar.unidata.geoloc.Projection- Specified by:
latLonToProjin classucar.unidata.geoloc.ProjectionImpl
-
projToLatLon
public ucar.unidata.geoloc.LatLonPoint projToLatLon(ucar.unidata.geoloc.ProjectionPoint ppt, ucar.unidata.geoloc.LatLonPointImpl destPoint)- Specified by:
projToLatLonin interfaceucar.unidata.geoloc.Projection- Specified by:
projToLatLonin classucar.unidata.geoloc.ProjectionImpl
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin interfaceucar.unidata.geoloc.Projection- Specified by:
equalsin classucar.unidata.geoloc.ProjectionImpl
-
constructCopy
public ucar.unidata.geoloc.ProjectionImpl constructCopy()
- Specified by:
constructCopyin classucar.unidata.geoloc.ProjectionImpl
-
paramsToString
public String paramsToString()
- Specified by:
paramsToStringin interfaceucar.unidata.geoloc.Projection- Specified by:
paramsToStringin classucar.unidata.geoloc.ProjectionImpl
-
crossSeam
public boolean crossSeam(ucar.unidata.geoloc.ProjectionPoint pt1, ucar.unidata.geoloc.ProjectionPoint pt2)- Specified by:
crossSeamin interfaceucar.unidata.geoloc.Projection- Specified by:
crossSeamin classucar.unidata.geoloc.ProjectionImpl
-
-