Class StereographicAzimuthalProjection
- java.lang.Object
-
- ucar.unidata.geoloc.ProjectionImpl
-
- ucar.unidata.geoloc.projection.proj4.StereographicAzimuthalProjection
-
- All Implemented Interfaces:
Serializable,Projection
public class StereographicAzimuthalProjection extends ProjectionImpl
taken from the USGS PROJ package.- 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 StereographicAzimuthalProjection()StereographicAzimuthalProjection(double latt, double lont, double scale, double trueScaleLat, double false_easting, double false_northing, Earth earth)Construct a Stereographic Projection.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ProjectionImplconstructCopy()copy constructor - avoid clone !!booleancrossSeam(ProjectionPoint pt1, ProjectionPoint pt2)Does the line between these two points cross the projection "seam".booleanequals(Object proj)Returns true if this represents the same Projection as proj.StringgetProjectionTypeLabel()Get the label to be used in the gui for this type of projection.inthashCode()ProjectionPointlatLonToProj(LatLonPoint latLon, ProjectionPointImpl destPoint)Convert a LatLonPoint to projection coordinatesStringparamsToString()Get a string representation of the projection parametersProjectionPointprojectInverse(double x, double y, ProjectionPointImpl lp)LatLonPointprojToLatLon(ProjectionPoint world, LatLonPointImpl result)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, getClassName, getDefaultMapArea, getDefaultMapAreaLL, getDefaultUnits, getHeader, getName, getProjectionParameters, 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
-
StereographicAzimuthalProjection
public StereographicAzimuthalProjection()
-
StereographicAzimuthalProjection
public StereographicAzimuthalProjection(double latt, double lont, double scale, double trueScaleLat, double false_easting, double false_northing, Earth earth)Construct a Stereographic Projection.- Parameters:
latt- tangent point of projection, also origin of projection coord system, in degreelont- tangent point of projection, also origin of projection coord system, in degreetrueScaleLat- latitude in degree where scale is scalescale- scale factor at tangent point, "normally 1.0 but may be reduced"
-
-
Method Detail
-
projectInverse
public ProjectionPoint projectInverse(double x, double y, ProjectionPointImpl lp)
-
getProjectionTypeLabel
public String getProjectionTypeLabel()
Description copied from class:ProjectionImplGet the label to be used in the gui for this type of projection. This defaults to call getClassName- Overrides:
getProjectionTypeLabelin classProjectionImpl- Returns:
- Type label
-
constructCopy
public ProjectionImpl constructCopy()
Description copied from class:ProjectionImplcopy constructor - avoid clone !!- Specified by:
constructCopyin classProjectionImpl- Returns:
- a copy of this Projection. TODO return Projection in ver6
-
paramsToString
public String paramsToString()
Description copied from class:ProjectionImplGet a string representation of the projection parameters- Specified by:
paramsToStringin interfaceProjection- Specified by:
paramsToStringin classProjectionImpl- Returns:
- string representation of the projection parameters
-
latLonToProj
public ProjectionPoint latLonToProj(LatLonPoint latLon, ProjectionPointImpl destPoint)
Description copied from class:ProjectionImplConvert a LatLonPoint to projection coordinates- Specified by:
latLonToProjin interfaceProjection- Specified by:
latLonToProjin classProjectionImpl- Parameters:
latLon- convert from these lat, lon coordinatesdestPoint- the object to write to- Returns:
- the given destPoint
-
projToLatLon
public LatLonPoint projToLatLon(ProjectionPoint world, LatLonPointImpl result)
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)
Description copied from class:ProjectionImplDoes 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
-
equals
public boolean equals(Object proj)
Description copied from class:ProjectionImplReturns true if this represents the same Projection as proj.- Specified by:
equalsin interfaceProjection- Specified by:
equalsin classProjectionImpl- Parameters:
proj- projection in question- Returns:
- true if this represents the same Projection as proj.
-
-