Class PolyconicProjection
- java.lang.Object
-
- ucar.unidata.geoloc.ProjectionImpl
-
- ucar.unidata.geoloc.projection.proj4.PolyconicProjection
-
- All Implemented Interfaces:
Serializable,Projection
public class PolyconicProjection extends ProjectionImpl
Polyconic Projection. This file was semi-automatically converted from the public-domain USGS PROJ source. Bernhard Jenny, 19 September 2010: fixed spherical inverse.- 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 PolyconicProjection()PolyconicProjection(double lat0, double lon0)PolyconicProjection(double lat0, double lon0, double falseEasting, double falseNorthing, Earth ellipsoid)PolyconicProjection(double lat0, double lon0, Earth ellipsoid)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description ProjectionImplconstructCopy()copy constructor - avoid clone !!booleancrossSeam(ProjectionPoint pt1, ProjectionPoint pt2)This returns true when the line between pt1 and pt2 crosses the seam.booleanequals(Object o)Returns true if this represents the same Projection as proj.EarthgetEarth()doublegetFalseEasting()Get the false easting, in km.doublegetFalseNorthing()Get the false northing, in km.doublegetOriginLatitude()Get the origin longitude.doublegetOriginLongitude()Get the origin longitude.StringgetProjectionTypeLabel()Get the label to be used in the gui for this type of projectioninthashCode()ProjectionPointlatLonToProj(LatLonPoint latlon, ProjectionPointImpl result)Convert a LatLonPoint to projection coordinatesStringparamsToString()Create a String of the parameters.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.voidsetFalseEasting(double falseEasting)Deprecated.voidsetFalseNorthing(double falseNorthing)Deprecated.voidsetOriginLatitude(double lat)Deprecated.voidsetOriginLongitude(double lon)Deprecated.-
Methods inherited from class ucar.unidata.geoloc.ProjectionImpl
addParameter, addParameter, addParameter, findProjectionParameter, getClassName, getDefaultMapArea, getDefaultMapAreaLL, 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
-
PolyconicProjection
public PolyconicProjection()
-
PolyconicProjection
public PolyconicProjection(double lat0, double lon0)
-
PolyconicProjection
public PolyconicProjection(double lat0, double lon0, Earth ellipsoid)
-
PolyconicProjection
public PolyconicProjection(double lat0, double lon0, double falseEasting, double falseNorthing, Earth ellipsoid)
-
-
Method Detail
-
equals
public boolean equals(Object o)
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.
-
getEarth
public Earth getEarth()
-
setOriginLatitude
@Deprecated public void setOriginLatitude(double lat)
Deprecated.Set the origin latitude.- Parameters:
lat- the origin latitude.
-
getOriginLatitude
public double getOriginLatitude()
Get the origin longitude.- Returns:
- the origin longitude in degrees
-
setOriginLongitude
@Deprecated public void setOriginLongitude(double lon)
Deprecated.Set the origin longitude.- Parameters:
lon- the origin longitude.
-
getOriginLongitude
public double getOriginLongitude()
Get the origin longitude.- Returns:
- the origin longitude in degrees
-
getFalseEasting
public double getFalseEasting()
Get the false easting, in km.- Returns:
- the false easting in km
-
setFalseEasting
@Deprecated public void setFalseEasting(double falseEasting)
Deprecated.Set the false_easting, in km. natural_x_coordinate + false_easting = x coordinate- Parameters:
falseEasting- x offset
-
getFalseNorthing
public double getFalseNorthing()
Get the false northing, in km.- Returns:
- the false northing in km
-
setFalseNorthing
@Deprecated public void setFalseNorthing(double falseNorthing)
Deprecated.Set the false northing, in km. natural_y_coordinate + false_northing = y coordinate- Parameters:
falseNorthing- y offset
-
getProjectionTypeLabel
public String getProjectionTypeLabel()
Get the label to be used in the gui for this type of projection- Overrides:
getProjectionTypeLabelin classProjectionImpl- Returns:
- Type label
-
paramsToString
public String paramsToString()
Create a String of the parameters.- Specified by:
paramsToStringin interfaceProjection- Specified by:
paramsToStringin classProjectionImpl- Returns:
- a String of the parameters
-
crossSeam
public boolean crossSeam(ProjectionPoint pt1, ProjectionPoint pt2)
This returns true when the line between pt1 and pt2 crosses the seam. When the cone is flattened, the "seam" is lon0 +- 180.- Specified by:
crossSeamin interfaceProjection- Specified by:
crossSeamin classProjectionImpl- Parameters:
pt1- point 1pt2- point 2- Returns:
- true when the line between pt1 and pt2 crosses the seam.
-
latLonToProj
public ProjectionPoint latLonToProj(LatLonPoint latlon, ProjectionPointImpl result)
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)
Convert 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
-
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
-
-