ilog.views.maps.projection
Class IlvSinusoidalProjection

java.lang.Object
  extended by ilog.views.maps.projection.IlvProjection
      extended by ilog.views.maps.projection.IlvSinusoidalProjection
All Implemented Interfaces:
IlvPersistentObject, Serializable

public class IlvSinusoidalProjection
extends IlvProjection

This class defines the Sinusoidal projection. This projection is a pseudocylindrical projection.

This projection is also known as:

This projection supports both spherical and non-spherical ellipsoids, and implements an inverse function.

This projection is Equal Area.

Since:
JViews 5.0
See Also:
Serialized Form

Field Summary
 
Fields inherited from class ilog.views.maps.projection.IlvProjection
CONFORMAL, EQUAL_AREA, NONE
 
Constructor Summary
IlvSinusoidalProjection()
          Creates an instance of the class IlvSinusoidalProjection.
IlvSinusoidalProjection(IlvInputStream stream)
          Reads the object from an IlvInputStream.
IlvSinusoidalProjection(IlvSinusoidalProjection source)
          Creates a new IlvSinusoidalProjection.
 
Method Summary
 IlvProjection copy()
          Copies the projection.
protected  void eForward(IlvCoordinate ll)
          Implements the projection for an ellipsoid.
protected  void eInverse(IlvCoordinate xy)
          Implements the inverse projection for an ellipsoid.
 void setEllipsoid(IlvEllipsoid ellipsoid)
          Sets the ellipsoid used for the projection ellipsoid.
protected  void sForward(IlvCoordinate ll)
          Implements the projection for a sphere.
protected  void sInverse(IlvCoordinate xy)
          Implements the inverse projection for a sphere.
 String toString()
          Converts the projection to a string with Evenden's format.
 void write(IlvOutputStream stream)
          Writes the object to an IlvOutputStream.
 
Methods inherited from class ilog.views.maps.projection.IlvProjection
addDescription, adjustLongitude, equals, forward, forward, getCentralMeridian, getCentralParallel, getDatum, getEllipsoid, getFalseEasting, getFalseNorthing, GetProjection, getProperty, getUnit, getXYOffset, inverse, inverse, inverse, isEllipsoidEnabled, isGeocentric, isInverseEnabled, isUsingLongitudeReduction, setCentralMeridian, setCentralParallel, setDatum, setFalseEasting, setFalseNorthing, setGeocentric, setLLCenter, setUnit, setUsingLongitudeReduction, setXYOffset
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IlvSinusoidalProjection

public IlvSinusoidalProjection()
Creates an instance of the class IlvSinusoidalProjection.


IlvSinusoidalProjection

public IlvSinusoidalProjection(IlvInputStream stream)
                        throws IlvReadFileException
Reads the object from an IlvInputStream.

Parameters:
stream - The input stream.
Throws:
IlvReadFileException - If the format is not correct.

IlvSinusoidalProjection

public IlvSinusoidalProjection(IlvSinusoidalProjection source)
Creates a new IlvSinusoidalProjection. by copying an existing one.

Parameters:
source - The graphic object that is copied.
Method Detail

copy

public IlvProjection copy()
Copies the projection.

Specified by:
copy in class IlvProjection
Returns:
A copy of the projection.

eForward

protected void eForward(IlvCoordinate ll)
Implements the projection for an ellipsoid.

Overrides:
eForward in class IlvProjection
Parameters:
ll - The longitude/latitude coordinates in radians (x = longitude, y = latitude).

eInverse

protected void eInverse(IlvCoordinate xy)
                 throws IlvToleranceConditionException
Implements the inverse projection for an ellipsoid.

Overrides:
eInverse in class IlvProjection
Parameters:
xy - The Cartesian coordinates.
Throws:
IlvToleranceConditionException - If the values are not within the tolerated limits.
See Also:
IlvProjection.inverse(ilog.views.IlvPoint), IlvProjection.isEllipsoidEnabled(), IlvProjection.isInverseEnabled()

sForward

protected void sForward(IlvCoordinate ll)
                 throws IlvToleranceConditionException
Implements the projection for a sphere.

Specified by:
sForward in class IlvProjection
Parameters:
ll - The longitude/latitude coordinates in radians (x = longitude, y = latitude).
Throws:
IlvToleranceConditionException - If the values are not within the tolerated limits.

sInverse

protected void sInverse(IlvCoordinate xy)
                 throws IlvToleranceConditionException
Implements the inverse projection for a sphere.

Overrides:
sInverse in class IlvProjection
Parameters:
xy - The Cartesian coordinates.
Throws:
IlvToleranceConditionException - If the values are not within the tolerated limits.
See Also:
IlvProjection.inverse(ilog.views.IlvPoint), IlvProjection.isInverseEnabled()

setEllipsoid

public void setEllipsoid(IlvEllipsoid ellipsoid)
Sets the ellipsoid used for the projection ellipsoid. This function also updates the projection parameters for the given ellipsoid.

Overrides:
setEllipsoid in class IlvProjection
Parameters:
ellipsoid - The ellipsoid.
See Also:
IlvEllipsoid

write

public void write(IlvOutputStream stream)
           throws IOException
Writes the object to an IlvOutputStream.

Specified by:
write in interface IlvPersistentObject
Overrides:
write in class IlvProjection
Parameters:
stream - The output stream.
Throws:
IOException - thrown when an exception occurs during the write operation for this object.

toString

public String toString()
Converts the projection to a string with Evenden's format.

Overrides:
toString in class Object


Copyright © 1996-2007 ILOG S.A. All rights reserved.   Documentation homepage.