public class TLcdEquidistantCylindrical extends ALcdCylindrical
The Equidistant Cylindrical projection is basically a linear transformation from lat-lon coordinates to XY world coordinates. If the equator is made the standard parallel this projection is also known as Plate Carree or Simple Cylindrical.
ILcdProjection projection =
new TLcdEquidistantCylindrical(0.0, 0.0);
fPropertyChangeDispatcher
EPSILON
Constructor and Description |
---|
TLcdEquidistantCylindrical()
Constructs a simple rectangular projection with the central meridian at 0
and the standard parallel at 0.
|
TLcdEquidistantCylindrical(double aCentralMeridian)
Constructs a simple rectangular projection with the specified central meridian
and the standard parallel at 0.
|
TLcdEquidistantCylindrical(double aCentralMeridian,
double aStandardParallel)
Constructs a simple rectangular projection with the specified central meridian.
|
Modifier and Type | Method and Description |
---|---|
double[][] |
boundaryLats(double aLongitude)
Default implementation.
|
double[][] |
boundaryLons(double aLatitude)
Default implementation.
|
boolean |
equals(Object o)
Checks if this
ILcdProjection equals some other Object. |
double |
getStandardParallel()
Returns the standard parallel of the Equidistant Cylindrical projection.
|
int |
hashCode() |
boolean |
inLonLatBounds(ILcdPoint aLLP)
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 . |
boolean |
isContinuous()
An
ILcdProjection is continuous if there are no interruptions
in the world coordinates. |
void |
loadProperties(String aPrefix,
Properties aProperty)
Loads the two properties of this equidistant cylindrical projection, i.e.,
the central meridian and the standard parallel.
|
void |
lonlatheight2worldOnSphereSFCT(ILcdPoint aLLP,
double aRadius,
ILcd2DEditablePoint aXYPointSFCT)
Transforms an
ILcd2DEditablePoint on a sphere into the
cartesian coordinate system of the projection. |
void |
setStandardParallel(double aStandardParallel)
Sets the standard parallel of the Equidistant Cylindrical projection.
|
String |
toString()
Returns the
String representation of the TLcdEquidistantCylindrical projection. |
void |
world2DEditableBoundsOnSphereSFCT(double aRadius,
ILcd2DEditableBounds aWorldBound)
Sets the
ILcd2DEditableBounds object to the bounds of the projection
in world coordinates. |
void |
world2lonlatOnSphereSFCT(ILcdPoint cp,
double aRadius,
ILcd2DEditablePoint aLLPSFCT)
Transforms an
ILcdPoint from the cartesian coordinate system
of the projection into an ILcd2DEditablePoint onto a sphere. |
void |
writePropertiesSFCT(String aPrefix,
Properties aPropertySFCT)
Writes the two properties of this equidistant cylindrical projection, i.e.,
the central meridian and the standard parallel.
|
calculateCachedValues, clone, getCentralMeridian, getOrigin, setCentralMeridian
addPropertyChangeListener, firePropertyChangeEvent, inWorldBoundsOnEllipsoid, lonlatheight2worldOnEllipsoidSFCT, removePropertyChangeListener, world2DEditableBoundsOnEllipsoidSFCT, world2lonlatOnEllipsoidSFCT
finalize, getClass, notify, notifyAll, wait, wait, wait
inWorldBoundsOnEllipsoid, lonlatheight2worldOnEllipsoidSFCT, world2DEditableBoundsOnEllipsoidSFCT, world2lonlatOnEllipsoidSFCT
addPropertyChangeListener, removePropertyChangeListener
public TLcdEquidistantCylindrical()
public TLcdEquidistantCylindrical(double aCentralMeridian)
aCentralMeridian
- the central meridian of the projection.public TLcdEquidistantCylindrical(double aCentralMeridian, double aStandardParallel)
aCentralMeridian
- the central meridian of the projection.aStandardParallel
- the standard parallel of the projection.public double getStandardParallel()
setStandardParallel(double)
public void setStandardParallel(double aStandardParallel)
aStandardParallel
- the new standard parallel value.getStandardParallel()
public void lonlatheight2worldOnSphereSFCT(ILcdPoint aLLP, double aRadius, ILcd2DEditablePoint aXYPointSFCT) throws TLcdOutOfBoundsException
ILcdProjection
ILcd2DEditablePoint
on a sphere into the
cartesian coordinate system of the projection.aLLP
- 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 cp, double aRadius, ILcd2DEditablePoint aLLPSFCT) throws TLcdOutOfBoundsException
ILcdProjection
ILcdPoint
from the cartesian coordinate system
of the projection into an ILcd2DEditablePoint
onto a sphere.cp
- projected point for which the corresponding geodetic point is sought.aRadius
- radius of the sphere (meters).aLLPSFCT
- 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 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 boolean isContinuous()
ILcdProjection
ILcdProjection
is continuous if there are no interruptions
in the world coordinates. Most projections are continuous.isContinuous
in interface ILcdProjection
isContinuous
in class ALcdCylindrical
true
if the projection is continuous,
false
otherwise.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.aLLP
- ILcdPoint
to be checked upon.true
if valid, false
if invalid.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 void world2DEditableBoundsOnSphereSFCT(double aRadius, ILcd2DEditableBounds aWorldBound)
ILcdProjection
ILcd2DEditableBounds
object to the bounds of the projection
in world coordinates.aRadius
- radius of the sphere.aWorldBound
- the bounds of the projection in world coordinates as side effect.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 loadProperties(String aPrefix, Properties aProperty) throws IllegalArgumentException
loadProperties
in interface ILcdProjection
loadProperties
in class ALcdCylindrical
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)
writePropertiesSFCT
in interface ILcdProjection
writePropertiesSFCT
in class ALcdCylindrical
aPrefix
- prefix for the property names.aPropertySFCT
- Properties object to store the serialized properties by side effect.public String toString()
String
representation of the TLcdEquidistantCylindrical
projection.toString
in interface ILcdProjection
toString
in class Object
String
representation of the TLcdEquidistantCylindrical
projection.public boolean equals(Object o)
ILcdProjection
ILcdProjection
equals some other Object.equals
in interface ILcdProjection
equals
in class ALcdCylindrical
o
- Object to compare with.ILcdProjection
class and having the same
projection properties, false otherwise.public int hashCode()
hashCode
in class ALcdCylindrical