Class RotatedOffsetProjection

  • All Implemented Interfaces:
    Serializable, ucar.unidata.geoloc.Projection

    public class RotatedOffsetProjection
    extends ucar.unidata.geoloc.ProjectionImpl
    A Projection which defines a rotated and offset grid in an arbitrary CRS. This does not support all of the methods of Projection, but rather only those which are required by CdmTransformedGrid. 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
    • Field Summary

      • Fields inherited from class ucar.unidata.geoloc.ProjectionImpl

        atts, defaultMapArea, EARTH_RADIUS, INDEX_LAT, INDEX_LON, INDEX_X, INDEX_Y, isLatLon, name, PI, PI_OVER_2, PI_OVER_4, TOLERANCE
    • 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 starts
        originY - The origin in the y-dimension, in the supplied CRS, at which this rotated grid starts
        angle - The CLOCKWISE angle by which the grid is rotated
        crs - The CoordinateReferenceSystem 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 interface ucar.unidata.geoloc.Projection
        Specified by:
        latLonToProj in class ucar.unidata.geoloc.ProjectionImpl
      • projToLatLon

        public ucar.unidata.geoloc.LatLonPoint projToLatLon​(ucar.unidata.geoloc.ProjectionPoint ppt,
                                                            ucar.unidata.geoloc.LatLonPointImpl destPoint)
        Specified by:
        projToLatLon in interface ucar.unidata.geoloc.Projection
        Specified by:
        projToLatLon in class ucar.unidata.geoloc.ProjectionImpl
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • equals

        public boolean equals​(Object obj)
        Specified by:
        equals in interface ucar.unidata.geoloc.Projection
        Specified by:
        equals in class ucar.unidata.geoloc.ProjectionImpl
      • constructCopy

        public ucar.unidata.geoloc.ProjectionImpl constructCopy()
        Specified by:
        constructCopy in class ucar.unidata.geoloc.ProjectionImpl
      • paramsToString

        public String paramsToString()
        Specified by:
        paramsToString in interface ucar.unidata.geoloc.Projection
        Specified by:
        paramsToString in class ucar.unidata.geoloc.ProjectionImpl
      • crossSeam

        public boolean crossSeam​(ucar.unidata.geoloc.ProjectionPoint pt1,
                                 ucar.unidata.geoloc.ProjectionPoint pt2)
        Specified by:
        crossSeam in interface ucar.unidata.geoloc.Projection
        Specified by:
        crossSeam in class ucar.unidata.geoloc.ProjectionImpl