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, 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 ProjectionImplconstructCopy()Deprecated.copy constructor - avoid clone !!booleancrossSeam(ProjectionPoint pt1, ProjectionPoint pt2)Deprecated.Does the line between these two points cross the projection "seam".booleanequals(Object o)Deprecated.Returns true if this represents the same Projection as proj.static ProjectionImplfactory(Projection proj)Deprecated.Create a ProjectionImpl from the projectionStringgetClassName()Deprecated.Get the class nameProjectionRectgetDefaultMapArea()Deprecated.Get a reasonable bounding box for this projection.inthashCode()Deprecated.ProjectionPointlatLonToProj(LatLonPoint latlon, ProjectionPointImpl result)Deprecated.Convert a LatLonPoint to projection coordinatesStringparamsToString()Deprecated.Get the parameters as a StringLatLonPointprojToLatLon(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, 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:ProjectionImplcopy constructor - avoid clone !!- Specified by:
constructCopyin classProjectionImpl- Returns:
- a copy of this Projection. TODO return Projection in ver6
-
getClassName
public String getClassName()
Deprecated.Get the class name- Specified by:
getClassNamein interfaceProjection- Overrides:
getClassNamein classProjectionImpl- Returns:
- the class name
-
paramsToString
public String paramsToString()
Deprecated.Get the parameters as a String- Specified by:
paramsToStringin interfaceProjection- Specified by:
paramsToStringin classProjectionImpl- Returns:
- the parameters as a String
-
equals
public boolean equals(Object o)
Deprecated.Description copied from class:ProjectionImplReturns true if this represents the same Projection as proj.- Specified by:
equalsin interfaceProjection- Specified by:
equalsin 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:
latLonToProjin interfaceProjection- Specified by:
latLonToProjin 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:ProjectionImplConvert projection coordinates to a LatLonPoint Note: a new object is not created on each call for the return value.- Specified by:
projToLatLonin interfaceProjection- Specified by:
projToLatLonin 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:
crossSeamin interfaceProjection- Specified by:
crossSeamin 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:
getDefaultMapAreain interfaceProjection- Overrides:
getDefaultMapAreain classProjectionImpl- Returns:
- reasonable bounding box
-
-