ucar.unidata.geoloc.projection
Class RotatedPole

java.lang.Object
  extended by ucar.unidata.geoloc.ProjectionImpl
      extended by ucar.unidata.geoloc.projection.RotatedPole
All Implemented Interfaces:
Serializable, Cloneable, Projection

public class RotatedPole
extends ProjectionImpl

Rotated-pole longitude-latitude grid.

Author:
Robert Schmunk, jcaron
See Also:
Serialized Form

Field Summary
 
Fields inherited from class ucar.unidata.geoloc.ProjectionImpl
ATTR_NAME, atts, defaultMapArea, EARTH_RADIUS, INDEX_LAT, INDEX_LON, INDEX_X, INDEX_Y, isLatLon, name, PI, PI_OVER_2, PI_OVER_4, TOLERANCE
 
Constructor Summary
RotatedPole()
          Default Constructor, needed for beans.
RotatedPole(double northPoleLat, double northPoleLon)
          Constructor.
 
Method Summary
 ProjectionImpl constructCopy()
          copy constructor - avoid clone !!
 boolean crossSeam(ProjectionPoint pt1, ProjectionPoint pt2)
          Does the line between these two points cross the projection "seam".
 boolean equals(Object proj)
          Returns true if this represents the same Projection as proj.
 Point2D.Double getNorthPole()
           
 ProjectionPoint latLonToProj(LatLonPoint latlon, ProjectionPointImpl destPoint)
          Transform a "real" longitude and latitude into the rotated longitude (X) and rotated latitude (Y).
 String paramsToString()
          Get a string representation of the projection parameters
 LatLonPoint projToLatLon(ProjectionPoint ppt, LatLonPointImpl destPoint)
          Transform a rotated longitude (X) and rotated latitude (Y) into a "real" longitude-latitude pair.
 
Methods inherited from class ucar.unidata.geoloc.ProjectionImpl
addParameter, addParameter, addParameter, clone, getClassName, getDefaultMapArea, getDefaultMapAreaLL, getHeader, getLatLonBoundingBox, getName, getProjectionParameters, getProjectionTypeLabel, isLatLon, latLonToProj, latLonToProj, latLonToProj, latLonToProj, latLonToProj, latLonToProj, latLonToProj, latLonToProj, latLonToProj, latLonToProj, latLonToProjBB, projToLatLon, projToLatLon, projToLatLon, projToLatLon, projToLatLon, projToLatLon, projToLatLonBB, setDefaultMapArea, setName, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RotatedPole

public RotatedPole()
Default Constructor, needed for beans.


RotatedPole

public RotatedPole(double northPoleLat,
                   double northPoleLon)
Constructor.

Parameters:
northPoleLat -
northPoleLon -
Method Detail

getNorthPole

public Point2D.Double getNorthPole()

constructCopy

public ProjectionImpl constructCopy()
copy constructor - avoid clone !!

Specified by:
constructCopy in class ProjectionImpl
Returns:
a copy of this Projection

paramsToString

public String paramsToString()
Description copied from class: ProjectionImpl
Get a string representation of the projection parameters

Specified by:
paramsToString in interface Projection
Specified by:
paramsToString in class ProjectionImpl
Returns:
string representation of the projection parameters

latLonToProj

public ProjectionPoint latLonToProj(LatLonPoint latlon,
                                    ProjectionPointImpl destPoint)
Transform a "real" longitude and latitude into the rotated longitude (X) and rotated latitude (Y).

Specified by:
latLonToProj in interface Projection
Specified by:
latLonToProj in class ProjectionImpl
Parameters:
latlon - convert from these lat, lon coordinates
destPoint - the object to write to
Returns:
the given destPoint

projToLatLon

public LatLonPoint projToLatLon(ProjectionPoint ppt,
                                LatLonPointImpl destPoint)
Transform a rotated longitude (X) and rotated latitude (Y) into a "real" longitude-latitude pair.

Specified by:
projToLatLon in interface Projection
Specified by:
projToLatLon in class ProjectionImpl
Parameters:
ppt - convert from these projection coordinates
destPoint - the object to write to
Returns:
LatLonPoint convert to these lat/lon coordinates

crossSeam

public boolean crossSeam(ProjectionPoint pt1,
                         ProjectionPoint pt2)
Description copied from class: ProjectionImpl
Does the line between these two points cross the projection "seam".

Specified by:
crossSeam in interface Projection
Specified by:
crossSeam in class ProjectionImpl
Parameters:
pt1 - the line goes between these two points
pt2 - the line goes between these two points
Returns:
false if there is no seam

equals

public boolean equals(Object proj)
Description copied from class: ProjectionImpl
Returns true if this represents the same Projection as proj.

Specified by:
equals in interface Projection
Specified by:
equals in class ProjectionImpl
Parameters:
proj - projection in question
Returns:
true if this represents the same Projection as proj.


Copyright © 1999-2011 UCAR/Unidata. All Rights Reserved.