|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectilog.views.maps.projection.IlvProjection
ilog.views.maps.projection.IlvConicProjection
public abstract class IlvConicProjection
This is the base class for all the conic projections in the package. A
conic projection transfers the image of the globe to a cone, either secant
or tangent, to the surface of the earth. The latitudes at
which the cone intersects with the globe can be specified with the function
setSecantLatitudes(IlvCoordinate secant). The secant
parameter is a vector that contains two values: secant.x, which
represents the first latitude lat1, and secant.y,
which represents the second latitude lat2. When the cone is
tangent to the earth, lat1 equals lat2.
The cylindrical (lat1 = -lat2) or azimuthal
(lat1 = lat2 = 90 degrees) limiting forms of the conic projections
should not be used.
| Field Summary |
|---|
| Fields inherited from class ilog.views.maps.projection.IlvProjection |
|---|
CONFORMAL, EQUAL_AREA, NONE |
| Constructor Summary | |
|---|---|
protected |
IlvConicProjection(boolean ellipsoidEnabled,
boolean inverseEnabled,
int property)
Creates a new instance of the class IlvConicProjection. |
protected |
IlvConicProjection(IlvConicProjection source)
Creates a new IlvConicProjection by copying an existing one. |
protected |
IlvConicProjection(IlvInputStream stream)
Reads the object from an IlvInputStream. |
| Method Summary | |
|---|---|
protected void |
addDescription(StringBuffer buffer)
Converts the projection into a String (Evenden's format). |
double |
getSecantLatitude1()
Returns the first latitude at which the cone intersects with the earth. |
double |
getSecantLatitude2()
Returns the second latitude at which the cone intersects with the earth. |
IlvCoordinate |
getSecantLatitudes()
Returns a new IlvCoordinate that contains the latitudes at
which the cone intersects with the earth. |
void |
setSecantLatitude1(double secantLat1)
Sets the first latitude at which the cone intersects with the earth. |
void |
setSecantLatitude2(double secantLat2)
Sets the second latitude at which the cone intersects with the earth. |
void |
setSecantLatitudes(IlvCoordinate secant)
Sets the latitudes at which the cone intersects with the earth. |
void |
write(IlvOutputStream stream)
Writes the object to an IlvOutputStream. |
| Methods inherited from class ilog.views.maps.projection.IlvProjection |
|---|
adjustLongitude, copy, eForward, eInverse, equals, forward, forward, getCentralMeridian, getCentralParallel, getDatum, getEllipsoid, getFalseEasting, getFalseNorthing, GetProjection, getProperty, getUnit, getXYOffset, inverse, inverse, inverse, isEllipsoidEnabled, isGeocentric, isInverseEnabled, isUsingLongitudeReduction, setCentralMeridian, setCentralParallel, setDatum, setEllipsoid, setFalseEasting, setFalseNorthing, setGeocentric, setLLCenter, setUnit, setUsingLongitudeReduction, setXYOffset, sForward, sInverse |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected IlvConicProjection(boolean ellipsoidEnabled,
boolean inverseEnabled,
int property)
IlvConicProjection.
ellipsoidEnabled - true if non-spherical ellipsoids can be
used for the projection. Projections supporting
non-spherical ellipsoids should implement the
eForward function.inverseEnabled - true if the projection implements an
inverse function. Projections implementing an inverse
function should implement the sInverse
and the eInverse
functions if ellipsoids are supported.property - the property of the projection (NONE, CONFORMAL, EQUAL_AREA)
protected IlvConicProjection(IlvInputStream stream)
throws IlvReadFileException
IlvInputStream.
stream - the input stream.
IlvReadFileException - if the format is not correct.protected IlvConicProjection(IlvConicProjection source)
IlvConicProjection by copying an existing one.
source - the graphic object that is copied.| Method Detail |
|---|
public void setSecantLatitudes(IlvCoordinate secant)
throws IlvBadProjectionParameter
secant - vector containing two values: secant.x
for the first latitude and secant.y
for the second latitude. Both these values are expressed
in radians.
IlvBadProjectionParameter - if the latitudes specify a limiting form,
that is, secant.x = -secant.y or secant.x = secant.y = PI/2
public void setSecantLatitude1(double secantLat1)
throws IlvBadProjectionParameter
secantLat1 - the secant latitude expressed in radians.
IlvBadProjectionParameter - if the secant latitude specifies a
limiting form of the conic projection.setSecantLatitudes(ilog.views.maps.IlvCoordinate)
public void setSecantLatitude2(double secantLat2)
throws IlvBadProjectionParameter
secantLat2 - the secant latitude expressed in radians.
IlvBadProjectionParameter - if the secant latitude specifies a
limiting form of the conic projection.setSecantLatitudes(ilog.views.maps.IlvCoordinate)public double getSecantLatitude1()
public double getSecantLatitude2()
public IlvCoordinate getSecantLatitudes()
IlvCoordinate that contains the latitudes at
which the cone intersects with the earth.
protected void addDescription(StringBuffer buffer)
addDescription in class IlvProjection
public void write(IlvOutputStream stream)
throws IOException
IlvOutputStream.
write in interface IlvPersistentObjectwrite in class IlvProjectionstream - the output stream.
IOException - thrown when an exception occurs during
the write operation for this object.
|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||