ilog.views.maps.projection
Class IlvCassiniProjection

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

public class IlvCassiniProjection
extends IlvProjection

This class defines the Cassini projection. This projection is a cylindrical projection where central meridian, meridians 90 degree from central meridian and Equator are straight lines.

This projection applies both to spherical and non-spherical ellipsoids and implements an inverse function.

This projection is neither conformal nor equal area.

Since:
JViews 3.5
See Also:
Serialized Form

Field Summary
 
Fields inherited from class ilog.views.maps.projection.IlvProjection
CONFORMAL, EQUAL_AREA, NONE
 
Constructor Summary
IlvCassiniProjection()
          Initializes a new instance of the class IlvCassiniProjection.
IlvCassiniProjection(IlvCassiniProjection source)
          Creates a new IlvCassiniProjection by copying an existing one.
IlvCassiniProjection(IlvInputStream stream)
          Reads a new IlvCassiniProjection from the specified stream.
 
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.
 void setLLCenter(double lon, double lat)
          Specifies the central meridian and the central parallel associated with the projection.
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()
          Returns a string representation of this projection.
 void write(IlvOutputStream stream)
          Writes this projection to the specified stream.
 
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, setUnit, setUsingLongitudeReduction, setXYOffset
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IlvCassiniProjection

public IlvCassiniProjection()
Initializes a new instance of the class IlvCassiniProjection.


IlvCassiniProjection

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

Parameters:
source - The projection that is copied.

IlvCassiniProjection

public IlvCassiniProjection(IlvInputStream stream)
                     throws IlvReadFileException
Reads a new IlvCassiniProjection from the specified stream.

Throws:
IlvReadFileException
Since:
JViews 5.0
Method Detail

write

public void write(IlvOutputStream stream)
           throws IOException
Writes this projection to the specified stream.

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.
Since:
JViews 5.0

copy

public IlvProjection copy()
Copies the projection.

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

toString

public String toString()
Returns a string representation of this projection.

Overrides:
toString in class Object
Since:
JViews 5.0

setEllipsoid

public void setEllipsoid(IlvEllipsoid ellipsoid)
Sets the ellipsoid used for the projection.

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

setLLCenter

public void setLLCenter(double lon,
                        double lat)
Specifies the central meridian and the central parallel associated with the projection. By default, the central parallel and the central meridian are set to 0.

Overrides:
setLLCenter in class IlvProjection
Parameters:
lon - The central meridian in radians.
lat - The central parallel in radians.
See Also:
IlvProjectionUtil.DegreeToRadian(double), IlvProjectionUtil.DMSToRadian(java.lang.String)

sForward

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

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

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).

sInverse

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

Overrides:
sInverse in class IlvProjection
Parameters:
xy - The Cartesian coordinates.
See Also:
IlvProjection.inverse(ilog.views.IlvPoint), IlvProjection.isInverseEnabled()

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()


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