public final class TLcdCassiniSoldner extends TLcdCassini
The Cassini projection is the transverse aspect of the equidistant cylindrical projection. The globe is first rotated so the central meridian becomes the "equator", and then the normal equidistant cylindrical projection is applied.
true
along the central meridian and lines perpendicular to it.true
along lines other meridians.
ILcdProjection projection =
new TLcdCassiniSoldner(-40.0);
The equations of the cassini projection are taken from [Snyder1987].
The ellipsoidal formulae are only useful in a zone, extending 3 to 4 degrees of longitude from the central meridian.
fPropertyChangeDispatcher
EPSILON
Constructor and Description |
---|
TLcdCassiniSoldner()
Constructs a Cassini-Soldner projection with the point of origin at
(0,0) . |
TLcdCassiniSoldner(double aCentralMeridian)
Constructs a Cassini-Soldner projection with the given central meridian and
the origin latitude at the equator.
|
TLcdCassiniSoldner(double aCentralMeridian,
double aOriginLat)
Constructs a Cassini-Soldner projection with the given central meridian and origin latitude.
|
Modifier and Type | Method and Description |
---|---|
double[][] |
boundaryLats(double lon)
Default implementation.
|
double[][] |
boundaryLons(double lat)
Default implementation.
|
protected void |
calculateCachedValues()
Constants based on the central meridian of the projection don't have to be
recalculated every time a method is called.
|
Object |
clone()
Makes a deep clone of this
ILcdProjection . |
boolean |
equals(Object aO)
Checks if this
ILcdProjection equals some other Object. |
double |
getLongitudeLimit()
Returns the maximum longitude distance from the central meridian that are considered within within the projection boundaries.
|
int |
hashCode() |
boolean |
inLonLatBounds(ILcdPoint aLLP)
Checks if an
ILcdPoint is inside the valid area of geodetic
coordinates of the projection. |
boolean |
inWorldBoundsOnEllipsoid(ILcdPoint aXYPoint,
ILcdEllipsoid aEllipsoid)
Default implementation calls
inWorldBoundsOnSphere with
aEllipsoid.getAuxRadius() as sphere radius. |
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 |
loadProperties(String aPrefix,
Properties aProperty)
Load the property of an
ALcdTransverseCylindrical : the central
meridian of the projection. |
void |
lonlatheight2worldOnEllipsoidSFCT(ILcdPoint aLLHP,
ILcdEllipsoid aEllipsoid,
ILcd2DEditablePoint aXYPointSFCT)
Default implementation calls
lonlatheight2worldOnEllipsoidSFCT
with aEllipsoid.getAuxRadius() as sphere radius. |
void |
setLongitudeLimit(double aLongitudeLimit)
Sets the maximum longitude distance from the central meridian that are considered within the projection boundaries.
|
String |
toString()
Returns the
String representation of the Cassini projection. |
void |
world2DEditableBoundsOnEllipsoidSFCT(ILcdEllipsoid aEllipsoid,
ILcd2DEditableBounds aWorldBoundsSFCT)
Default implementation calls
world2lonlatOnSphereSFCT with
aEllipsoid.getAuxRadius() as sphere radius. |
void |
world2lonlatOnEllipsoidSFCT(ILcdPoint aXYPoint,
ILcdEllipsoid aEllipsoid,
ILcd2DEditablePoint aLLPointSFCT)
Default implementation calls
world2lonlatOnSphereSFCT with
aEllipsoid.getAuxRadius() as sphere radius. |
void |
writePropertiesSFCT(String aPrefix,
Properties aPropertySFCT)
Writes the property of an
ALcdTransverseCylindrical : the
central meridian of the projection. |
inWorldBoundsOnSphere, isContinuous, lonlatheight2worldOnSphereSFCT, world2DEditableBoundsOnSphereSFCT, world2lonlatOnSphereSFCT
getCentralMeridian, getOrigin, getOriginLat, setCentralMeridian, setOriginLat
addPropertyChangeListener, firePropertyChangeEvent, removePropertyChangeListener
finalize, getClass, notify, notifyAll, wait, wait, wait
addPropertyChangeListener, removePropertyChangeListener
public TLcdCassiniSoldner()
(0,0)
.public TLcdCassiniSoldner(double aCentralMeridian)
aCentralMeridian
- the central meridian of the projection.public TLcdCassiniSoldner(double aCentralMeridian, double aOriginLat)
aCentralMeridian
- the central meridian of the projection.aOriginLat
- the latitude of the point of origin of the projection.public double getLongitudeLimit()
public void setLongitudeLimit(double aLongitudeLimit)
aLongitudeLimit
- a longitude distance (in degrees)protected void calculateCachedValues()
ALcdTransverseCylindrical
calculateCachedValues
in class ALcdTransverseCylindrical
public void lonlatheight2worldOnEllipsoidSFCT(ILcdPoint aLLHP, ILcdEllipsoid aEllipsoid, ILcd2DEditablePoint aXYPointSFCT) throws TLcdOutOfBoundsException
ALcdProjection
lonlatheight2worldOnEllipsoidSFCT
with aEllipsoid.getAuxRadius()
as sphere radius.lonlatheight2worldOnEllipsoidSFCT
in interface ILcdProjection
lonlatheight2worldOnEllipsoidSFCT
in class ALcdProjection
aLLHP
- point to be projected.aEllipsoid
- ellipsoid on which the point is defined.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 world2lonlatOnEllipsoidSFCT(ILcdPoint aXYPoint, ILcdEllipsoid aEllipsoid, ILcd2DEditablePoint aLLPointSFCT) throws TLcdOutOfBoundsException
ALcdProjection
world2lonlatOnSphereSFCT
with
aEllipsoid.getAuxRadius()
as sphere radius.world2lonlatOnEllipsoidSFCT
in interface ILcdProjection
world2lonlatOnEllipsoidSFCT
in class ALcdProjection
aXYPoint
- projected point for which the corresponding geodetic point is sought.aEllipsoid
- ellipsoid on which the geodetic coordinate is defined.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 void world2DEditableBoundsOnEllipsoidSFCT(ILcdEllipsoid aEllipsoid, ILcd2DEditableBounds aWorldBoundsSFCT)
ALcdProjection
world2lonlatOnSphereSFCT
with
aEllipsoid.getAuxRadius()
as sphere radius.world2DEditableBoundsOnEllipsoidSFCT
in interface ILcdProjection
world2DEditableBoundsOnEllipsoidSFCT
in class ALcdProjection
aEllipsoid
- ellipsoid considered.aWorldBoundsSFCT
- the bounds of the projection in world coordinates as side effect.public boolean inWorldBoundsOnEllipsoid(ILcdPoint aXYPoint, ILcdEllipsoid aEllipsoid)
ALcdProjection
inWorldBoundsOnSphere
with
aEllipsoid.getAuxRadius()
as sphere radius.inWorldBoundsOnEllipsoid
in interface ILcdProjection
inWorldBoundsOnEllipsoid
in class ALcdProjection
aXYPoint
- point to be checked upon.aEllipsoid
- ellipsoid on which the geodetic coordinate is defined.true
if valid, false
if invalid.ILcdProjection.inWorldBoundsOnSphere(com.luciad.shape.ILcdPoint, double)
public boolean inLonLatBounds(ILcdPoint aLLP)
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.inLonLatBounds
in interface ILcdProjection
inLonLatBounds
in class TLcdCassini
aLLP
- ILcdPoint
to be checked upon.true
if valid, false
if invalid.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.isAllInBounds
in interface ILcdProjection
isAllInBounds
in class TLcdCassini
true
if all LonLatPoints are within the bounds of
the projection, false
otherwise.public double[][] boundaryLons(double lat)
ALcdProjection
boundaryLons
in interface ILcdProjection
boundaryLons
in class TLcdCassini
lat
- latitude in decimal degrees and -90.0 <= aLat
<= 90.0.public double[][] boundaryLats(double lon)
ALcdProjection
boundaryLats
in interface ILcdProjection
boundaryLats
in class TLcdCassini
lon
- longitude in decimal degrees -180.0 <= lon <= 180.0 .public Object clone()
ILcdProjection
ILcdProjection
.clone
in interface ILcdProjection
clone
in class ALcdTransverseCylindrical
ILcdProjection
.public String toString()
TLcdCassini
String
representation of the Cassini projection.toString
in interface ILcdProjection
toString
in class TLcdCassini
String
representation of the Cassini projection.public int hashCode()
hashCode
in class ALcdTransverseCylindrical
public boolean equals(Object aO)
ILcdProjection
ILcdProjection
equals some other Object.equals
in interface ILcdProjection
equals
in class ALcdTransverseCylindrical
aO
- Object to compare with.ILcdProjection
class and having the same
projection properties, false otherwise.public void loadProperties(String aPrefix, Properties aProperty) throws IllegalArgumentException
ALcdTransverseCylindrical
ALcdTransverseCylindrical
: the central
meridian of the projection. This method will, given aPrefix, analyze the
aProperties object to set the property of this ALcdTransverseCylindrical
.
The value of following key is retrieved:
loadProperties
in interface ILcdProjection
loadProperties
in class ALcdTransverseCylindrical
aPrefix
- prefix of the property names.aProperty
- Properties object containing the serialized properties.IllegalArgumentException
- if the projection cannot be created.public void writePropertiesSFCT(String aPrefix, Properties aPropertySFCT)
ALcdTransverseCylindrical
ALcdTransverseCylindrical
: the
central meridian of the projection. This method will, given aPrefix, store
the property of this ALcdTransverseCylindrical
the aProperties
object. The value of following key is stored:
writePropertiesSFCT
in interface ILcdProjection
writePropertiesSFCT
in class ALcdTransverseCylindrical
aPrefix
- prefix for the property names.aPropertySFCT
- Properties object to store the serialized properties by side effect.