public class TLcdEckertIV extends ALcdCylindrical
Pseudocylindrical equal-area projection with elliptical meridians.
ILcdProjection projection =
new TLcdEckertIV(0.0);
The equations of the Eckert IV projection are taken from [Snyder1987].
fPropertyChangeDispatcher
EPSILON
Constructor and Description |
---|
TLcdEckertIV()
Constructs a Eckert IV projection with the central meridian at 0.
|
TLcdEckertIV(double aCentralMeridian)
Constructs a Eckert IV projection with a given central meridian.
|
Modifier and Type | Method and Description |
---|---|
double[][] |
boundaryLats(double aLongitude)
Default implementation.
|
double[][] |
boundaryLons(double aLatitude)
Default implementation.
|
boolean |
inLonLatBounds(ILcdPoint aLLHP)
Checks if an
ILcdPoint is inside the valid area of geodetic
coordinates of the projection. |
boolean |
inWorldBoundsOnSphere(ILcdPoint aXYPoint,
double aRadius)
Checks if a
ILcdPoint is inside the valid cartesian area of
the projection. |
boolean |
isAllInBounds()
If all geodetic coordinates (l ,j ) are projected (visible) by an
ILcdProjection
and all (x,y ) coordinates are bounded this is true . |
void |
lonlatheight2worldOnSphereSFCT(ILcdPoint aLLHP,
double aRadius,
ILcd2DEditablePoint aXYPointSFCT)
Transforms an
ILcd2DEditablePoint on a sphere into the
cartesian coordinate system of the projection. |
String |
toString()
Returns the
String representation of the Eckert IV projection. |
void |
world2DEditableBoundsOnSphereSFCT(double aRadius,
ILcd2DEditableBounds aWorldBounds)
Sets the
ILcd2DEditableBounds object to the bounds of the projection
in world coordinates. |
void |
world2lonlatOnSphereSFCT(ILcdPoint aXYPoint,
double aRadius,
ILcd2DEditablePoint aLLPointSFCT)
Transforms an
ILcdPoint from the cartesian coordinate system
of the projection into an ILcd2DEditablePoint onto a sphere. |
calculateCachedValues, clone, equals, getCentralMeridian, getOrigin, hashCode, isContinuous, loadProperties, setCentralMeridian, writePropertiesSFCT
addPropertyChangeListener, firePropertyChangeEvent, inWorldBoundsOnEllipsoid, lonlatheight2worldOnEllipsoidSFCT, removePropertyChangeListener, world2DEditableBoundsOnEllipsoidSFCT, world2lonlatOnEllipsoidSFCT
finalize, getClass, notify, notifyAll, wait, wait, wait
inWorldBoundsOnEllipsoid, lonlatheight2worldOnEllipsoidSFCT, world2DEditableBoundsOnEllipsoidSFCT, world2lonlatOnEllipsoidSFCT
addPropertyChangeListener, removePropertyChangeListener
public TLcdEckertIV()
public TLcdEckertIV(double aCentralMeridian)
aCentralMeridian
- the central meridian for the Eckert IV projection.public boolean isAllInBounds()
ILcdProjection
ILcdProjection
and all (x,y ) coordinates are bounded this is true
.
All ILcdProjection
objects have bounded (x,y )
coordinates because the projection is cut off if necessary.true
if all LonLatPoints are within the bounds of
the projection, false
otherwise.public void lonlatheight2worldOnSphereSFCT(ILcdPoint aLLHP, double aRadius, ILcd2DEditablePoint aXYPointSFCT) throws TLcdOutOfBoundsException
ILcdProjection
ILcd2DEditablePoint
on a sphere into the
cartesian coordinate system of the projection.aLLHP
- point to be projected.aRadius
- radius of the sphere (meters).aXYPointSFCT
- projected point as side effect.TLcdOutOfBoundsException
- If the
ILcdPoint
aLLHP
is not within the valid area
of the projection (visible area), then this exception is thrown.public void world2lonlatOnSphereSFCT(ILcdPoint aXYPoint, double aRadius, ILcd2DEditablePoint aLLPointSFCT) throws TLcdOutOfBoundsException
ILcdProjection
ILcdPoint
from the cartesian coordinate system
of the projection into an ILcd2DEditablePoint
onto a sphere.aXYPoint
- projected point for which the corresponding geodetic point is sought.aRadius
- radius of the sphere (meters).aLLPointSFCT
- resulting geodetic coordinate as side effect.TLcdOutOfBoundsException
- If the
ILcdPoint
aXYPoint
is not within the valid
area of the projection (visible area), then this exception is thrown.public boolean inLonLatBounds(ILcdPoint aLLHP)
ILcdProjection
ILcdPoint
is inside the valid area of geodetic
coordinates of the projection. The valid area is determined by the
LonLatPoints that are visible and for which the corresponding cartesian
coordinate is within the boundaries.aLLHP
- ILcdPoint
to be checked upon.true
if valid, false
if invalid.public boolean inWorldBoundsOnSphere(ILcdPoint aXYPoint, double aRadius)
ILcdProjection
ILcdPoint
is inside the valid cartesian area of
the projection. The valid cartesian area is determined naturally by the
projection bounds or by an artificial introduced boundary limit because
some cartesian points are at infinity. The shape of the valid cartesian
area is in many cases rectangular or circular although it might be more
complex.aXYPoint
- point to be checked upon.aRadius
- radius of the sphere.true
if valid, false
if invalid.public void world2DEditableBoundsOnSphereSFCT(double aRadius, ILcd2DEditableBounds aWorldBounds)
ILcdProjection
ILcd2DEditableBounds
object to the bounds of the projection
in world coordinates.aRadius
- radius of the sphere.aWorldBounds
- the bounds of the projection in world coordinates as side effect.public double[][] boundaryLons(double aLatitude)
ALcdProjection
boundaryLons
in interface ILcdProjection
boundaryLons
in class ALcdProjection
aLatitude
- latitude in decimal degrees and -90.0 <= aLat
<= 90.0.public double[][] boundaryLats(double aLongitude)
ALcdProjection
boundaryLats
in interface ILcdProjection
boundaryLats
in class ALcdProjection
aLongitude
- longitude in decimal degrees -180.0 <= lon <= 180.0 .public String toString()
String
representation of the Eckert IV projection.toString
in interface ILcdProjection
toString
in class Object
String
representation of the Eckert IV projection.