Package ucar.unidata.geoloc.projection
Class ProjectionAdapter
- java.lang.Object
-
- ucar.unidata.geoloc.ProjectionImpl
-
- ucar.unidata.geoloc.projection.ProjectionAdapter
-
- All Implemented Interfaces:
Serializable
,Projection
@Deprecated public class ProjectionAdapter extends ProjectionImpl
Deprecated.do not useAdapts a Projection interface into a subclass of ProjectionImpl, so we can assume a Projection is a ProjectionImpl without loss of generality.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class ucar.unidata.geoloc.ProjectionImpl
atts, defaultMapArea, defaultUnits, 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 ProjectionAdapter(Projection proj)
Deprecated.Create a new ProjectionImpl from a Projection
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description ProjectionImpl
constructCopy()
Deprecated.copy constructor - avoid clone !!boolean
crossSeam(ProjectionPoint pt1, ProjectionPoint pt2)
Deprecated.Does the line between these two points cross the projection "seam".boolean
equals(Object o)
Deprecated.Returns true if this represents the same Projection as proj.static ProjectionImpl
factory(Projection proj)
Deprecated.Create a ProjectionImpl from the projectionString
getClassName()
Deprecated.Get the class nameProjectionRect
getDefaultMapArea()
Deprecated.Get a reasonable bounding box for this projection.int
hashCode()
Deprecated.ProjectionPoint
latLonToProj(LatLonPoint latlon, ProjectionPointImpl result)
Deprecated.Convert a LatLonPoint to projection coordinatesString
paramsToString()
Deprecated.Get the parameters as a StringLatLonPoint
projToLatLon(ProjectionPoint world, LatLonPointImpl result)
Deprecated.Convert projection coordinates to a LatLonPoint Note: a new object is not created on each call for the return value.-
Methods inherited from class ucar.unidata.geoloc.ProjectionImpl
addParameter, addParameter, addParameter, findProjectionParameter, getDefaultMapAreaLL, getDefaultUnits, getHeader, getName, getProjectionParameters, getProjectionTypeLabel, isLatLon, latLonToProj, latLonToProj, latLonToProj, latLonToProj, latLonToProj, latLonToProj, latLonToProj, latLonToProj, latLonToProj, latLonToProjBB, projToLatLon, projToLatLon, projToLatLon, projToLatLon, projToLatLon, projToLatLonBB, projToLatLonBBold, setDefaultMapArea, setName, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface ucar.unidata.geoloc.Projection
latLonToProj, projToLatLon
-
-
-
-
Constructor Detail
-
ProjectionAdapter
public ProjectionAdapter(Projection proj)
Deprecated.Create a new ProjectionImpl from a Projection- Parameters:
proj
- projection to use
-
-
Method Detail
-
factory
public static ProjectionImpl factory(Projection proj)
Deprecated.Create a ProjectionImpl from the projection- Parameters:
proj
- projection- Returns:
- a ProjectionImpl representing the projection
-
constructCopy
public ProjectionImpl constructCopy()
Deprecated.Description copied from class:ProjectionImpl
copy constructor - avoid clone !!- Specified by:
constructCopy
in classProjectionImpl
- Returns:
- a copy of this Projection. TODO return Projection in ver6
-
getClassName
public String getClassName()
Deprecated.Get the class name- Specified by:
getClassName
in interfaceProjection
- Overrides:
getClassName
in classProjectionImpl
- Returns:
- the class name
-
paramsToString
public String paramsToString()
Deprecated.Get the parameters as a String- Specified by:
paramsToString
in interfaceProjection
- Specified by:
paramsToString
in classProjectionImpl
- Returns:
- the parameters as a String
-
equals
public boolean equals(Object o)
Deprecated.Description copied from class:ProjectionImpl
Returns true if this represents the same Projection as proj.- Specified by:
equals
in interfaceProjection
- Specified by:
equals
in classProjectionImpl
- Parameters:
o
- projection in question- Returns:
- true if this represents the same Projection as proj.
-
latLonToProj
public ProjectionPoint latLonToProj(LatLonPoint latlon, ProjectionPointImpl result)
Deprecated.Convert a LatLonPoint to projection coordinates- Specified by:
latLonToProj
in interfaceProjection
- Specified by:
latLonToProj
in classProjectionImpl
- Parameters:
latlon
- convert from these lat, lon coordinatesresult
- the object to write to- Returns:
- the given result
-
projToLatLon
public LatLonPoint projToLatLon(ProjectionPoint world, LatLonPointImpl result)
Deprecated.Description copied from class:ProjectionImpl
Convert projection coordinates to a LatLonPoint Note: a new object is not created on each call for the return value.- Specified by:
projToLatLon
in interfaceProjection
- Specified by:
projToLatLon
in classProjectionImpl
- Parameters:
world
- convert from these projection coordinatesresult
- the object to write to- Returns:
- LatLonPoint convert to these lat/lon coordinates
-
crossSeam
public boolean crossSeam(ProjectionPoint pt1, ProjectionPoint pt2)
Deprecated.Does the line between these two points cross the projection "seam".- Specified by:
crossSeam
in interfaceProjection
- Specified by:
crossSeam
in classProjectionImpl
- Parameters:
pt1
- the line goes between these two pointspt2
- the line goes between these two points- Returns:
- false if there is no seam
-
getDefaultMapArea
public ProjectionRect getDefaultMapArea()
Deprecated.Get a reasonable bounding box for this projection.- Specified by:
getDefaultMapArea
in interfaceProjection
- Overrides:
getDefaultMapArea
in classProjectionImpl
- Returns:
- reasonable bounding box
-
-