public abstract class ALcdObliqueCylindrical extends ALcdProjection implements ILcdObliqueCylindrical, Cloneable
ALcdObliqueCylindrical
is an ILcdProjection
that
is obtained by wrapping a cylinder around the globe.
An ALcdObliqueCylindrical
has a standardParallel, which is
determined by a latitude. For a tangent cylindrical projection, the standard
parallel is the equator, i.e., aLat == 0.0
An ALcdObliqueCylindrical
has a centralMeridian, which is
determined by a longitude. The central meridian determines the position of
the origin, which is always on the equator.
An ALcdObliqueCylindrical
has an azimuth. The azimuth (east of
north) determines the central line.
fPropertyChangeDispatcher
EPSILON
Constructor and Description |
---|
ALcdObliqueCylindrical() |
Modifier and Type | Method and Description |
---|---|
protected void |
calculateCachedValues()
Constants based on the longitude, latitude, standard parallel, and azimuth
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 aObject)
Checks if this
ILcdProjection equals some other Object. |
double |
getAzimuth()
Gets the azimuth of this
ILcdObliqueCylindrical . |
double |
getCentralMeridian()
Gets the longitude of the centralMeridian of this
ILcdObliqueCylindrical . |
ILcdPoint |
getOrigin()
Origin of the projection is the
ILcd2DEditablePoint that
corresponds with origin (0, 0) of the cartesian coordinate system of the
projection. |
double |
getStandardParallel()
Gets the latitude of the standardParallel of this
ILcdObliqueCylindrical . |
int |
hashCode() |
boolean |
isContinuous()
An
ILcdProjection is continuous if there are no interruptions
in the world coordinates. |
void |
loadProperties(String aPrefix,
Properties aProperty)
Loads the 3 properties of an
ALcdObliqueCylindrical : the
centralMeridian, the azimuth and the standardParallel. |
void |
setAzimuth(double aAzimuth)
Sets the azimuth of this
ILcdObliqueCylindrical to aAzimuth . |
void |
setCentralMeridian(double aLon)
Sets the centralMeridian of this
ILcdObliqueCylindrical to
the meridian with longitude aLongitude . |
void |
setStandardParallel(double aLat)
Sets the standardParallel of this
ILcdObliqueCylindrical to
the parallel with latitude aLatitude . |
void |
writePropertiesSFCT(String aPrefix,
Properties aPropertySFCT)
Writes the 3 properties of an
ALcdObliqueCylindrical : the
centralMeridian, the azimuth and the standardParallel. |
addPropertyChangeListener, boundaryLats, boundaryLons, firePropertyChangeEvent, inWorldBoundsOnEllipsoid, lonlatheight2worldOnEllipsoidSFCT, removePropertyChangeListener, world2DEditableBoundsOnEllipsoidSFCT, world2lonlatOnEllipsoidSFCT
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
boundaryLats, boundaryLons, inLonLatBounds, inWorldBoundsOnEllipsoid, inWorldBoundsOnSphere, isAllInBounds, lonlatheight2worldOnEllipsoidSFCT, lonlatheight2worldOnSphereSFCT, toString, world2DEditableBoundsOnEllipsoidSFCT, world2DEditableBoundsOnSphereSFCT, world2lonlatOnEllipsoidSFCT, world2lonlatOnSphereSFCT
addPropertyChangeListener, removePropertyChangeListener
public void setStandardParallel(double aLat)
ILcdObliqueCylindrical
ILcdObliqueCylindrical
to
the parallel with latitude aLatitude
.setStandardParallel
in interface ILcdObliqueCylindrical
aLat
- The new standardParallel value.ILcdObliqueCylindrical.getStandardParallel()
public void setCentralMeridian(double aLon)
ILcdObliqueCylindrical
ILcdObliqueCylindrical
to
the meridian with longitude aLongitude
.setCentralMeridian
in interface ILcdObliqueCylindrical
aLon
- The new centralMeridian value.ILcdObliqueCylindrical.getCentralMeridian()
public void setAzimuth(double aAzimuth)
ILcdObliqueCylindrical
ILcdObliqueCylindrical
to aAzimuth
.setAzimuth
in interface ILcdObliqueCylindrical
aAzimuth
- The new azimuth value.ILcdObliqueCylindrical.getAzimuth()
public double getStandardParallel()
ILcdObliqueCylindrical
ILcdObliqueCylindrical
.getStandardParallel
in interface ILcdObliqueCylindrical
ILcdObliqueCylindrical
.ILcdObliqueCylindrical.setStandardParallel(double)
public double getCentralMeridian()
ILcdObliqueCylindrical
ILcdObliqueCylindrical
.getCentralMeridian
in interface ILcdObliqueCylindrical
ILcdObliqueCylindrical
.ILcdObliqueCylindrical.setCentralMeridian(double)
public double getAzimuth()
ILcdObliqueCylindrical
ILcdObliqueCylindrical
.getAzimuth
in interface ILcdObliqueCylindrical
ILcdObliqueCylindrical
.ILcdObliqueCylindrical.setAzimuth(double)
public ILcdPoint getOrigin()
ILcdProjection
ILcd2DEditablePoint
that
corresponds with origin (0, 0) of the cartesian coordinate system of the
projection.getOrigin
in interface ILcdProjection
public boolean isContinuous()
ILcdProjection
ILcdProjection
is continuous if there are no interruptions
in the world coordinates. Most projections are continuous.isContinuous
in interface ILcdProjection
true
if the projection is continuous,
false
otherwise.public void loadProperties(String aPrefix, Properties aProperty) throws IllegalArgumentException
ALcdObliqueCylindrical
: the
centralMeridian, the azimuth and the standardParallel. This method will,
given aPrefix, analyze the aProperties object to set the properties of this
ALcdObliqueCylindrical
. The values of following keys are
retrieved:
loadProperties
in interface ILcdProjection
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)
ALcdObliqueCylindrical
: the
centralMeridian, the azimuth and the standardParallel. This method will,
given aPrefix, store the properties of this ALcdObliqueCylindrical
into the aProperties object. The values of following keys are stored:
writePropertiesSFCT
in interface ILcdProjection
aPrefix
- prefix for the property names.aPropertySFCT
- Properties object to store the serialized properties by side effect.protected void calculateCachedValues()
public boolean equals(Object aObject)
ILcdProjection
ILcdProjection
equals some other Object.equals
in interface ILcdProjection
equals
in class Object
aObject
- Object to compare with.ILcdProjection
class and having the same
projection properties, false otherwise.public Object clone()
ILcdProjection
ILcdProjection
.clone
in interface ILcdProjection
clone
in class ALcdProjection
ILcdProjection
.