|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectucar.unidata.geoloc.ProjectionImpl
ucar.unidata.geoloc.projection.proj4.AlbersEqualAreaEllipse
public class AlbersEqualAreaEllipse
Adapted from com.jhlabs.map.proj.AlbersProjection
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 | |
---|---|
AlbersEqualAreaEllipse()
Constructor with default parameters |
|
AlbersEqualAreaEllipse(double lat0,
double lon0,
double par1,
double par2,
double falseEasting,
double falseNorthing,
Earth earth)
Construct a AlbersEqualAreaEllipse Projection, two standard parellels. |
Method Summary | |
---|---|
Object |
clone()
Clone this projection. |
ProjectionImpl |
constructCopy()
copy constructor - avoid clone !! |
boolean |
crossSeam(ProjectionPoint pt1,
ProjectionPoint pt2)
This returns true when the line between pt1 and pt2 crosses the seam. |
boolean |
equals(Object proj)
Check for equality with the Object in question |
Earth |
getEarth()
|
double |
getFalseEasting()
Get the false easting, in km. |
double |
getFalseNorthing()
Get the false northing, in km. |
double |
getOriginLat()
Get the origin latitude. |
double |
getOriginLon()
Get the origin longitude. |
double |
getParallelOne()
Get the first standard parallel |
double |
getParallelTwo()
Get the second standard parallel |
String |
getProjectionTypeLabel()
Get the label to be used in the gui for this type of projection |
ProjectionPoint |
latLonToProj(LatLonPoint latLon,
ProjectionPointImpl result)
Convert a LatLonPoint to projection coordinates |
static void |
main(String[] args)
|
String |
paramsToString()
Create a String of the parameters. |
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. |
Methods inherited from class ucar.unidata.geoloc.ProjectionImpl |
---|
addParameter, addParameter, addParameter, getClassName, getDefaultMapArea, getDefaultMapAreaLL, getHeader, getLatLonBoundingBox, getName, getProjectionParameters, 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 |
---|
public AlbersEqualAreaEllipse()
public AlbersEqualAreaEllipse(double lat0, double lon0, double par1, double par2, double falseEasting, double falseNorthing, Earth earth)
lat0
- lat origin of the coord. system on the projection planelon0
- lon origin of the coord. system on the projection planepar1
- standard parallel 1par2
- standard parallel 2falseEasting
- false easting in kmfalseNorthing
- false easting in kmearth
- shape of the earth
IllegalArgumentException
- if Math.abs(par1 + par2) < 1.e-10Method Detail |
---|
public ProjectionImpl constructCopy()
constructCopy
in class ProjectionImpl
public Object clone()
clone
in class ProjectionImpl
public boolean equals(Object proj)
equals
in interface Projection
equals
in class ProjectionImpl
proj
- object to check
public Earth getEarth()
public double getParallelTwo()
public double getParallelOne()
public double getOriginLon()
public double getOriginLat()
public double getFalseEasting()
public double getFalseNorthing()
public String getProjectionTypeLabel()
getProjectionTypeLabel
in class ProjectionImpl
public String paramsToString()
paramsToString
in interface Projection
paramsToString
in class ProjectionImpl
public boolean crossSeam(ProjectionPoint pt1, ProjectionPoint pt2)
crossSeam
in interface Projection
crossSeam
in class ProjectionImpl
pt1
- point 1pt2
- point 2
public ProjectionPoint latLonToProj(LatLonPoint latLon, ProjectionPointImpl result)
ProjectionImpl
latLonToProj
in interface Projection
latLonToProj
in class ProjectionImpl
latLon
- convert from these lat, lon coordinatesresult
- the object to write to
public LatLonPoint projToLatLon(ProjectionPoint world, LatLonPointImpl result)
projToLatLon
in interface Projection
projToLatLon
in class ProjectionImpl
world
- convert from these projection coordinatesresult
- the object to write to
public static void main(String[] args)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |