ilog.views.maps.projection
Class IlvGnomonicProjection

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

public class IlvGnomonicProjection
extends IlvProjection

This class defines the Gnomonic projection. The Gnonomic projection is an azimuthal projection. Because of distortions with increasing distance from the center of the projection, this projection is used to show areas of less than a hemisphere.

This projection applies only to 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
IlvGnomonicProjection()
          Initializes a new instance of the class IlvGnomonicProjection.
IlvGnomonicProjection(IlvGnomonicProjection source)
          Creates a new IlvGnomonicProjection by copying an existing one.
IlvGnomonicProjection(IlvInputStream stream)
          Reads a new IlvGnomonicProjection from the specified stream.
 
Method Summary
 IlvProjection copy()
          Copies 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()
          Converts the projection to a string with Evenden's format.
 void write(IlvOutputStream stream)
          Writes this projection to the specified stream.
 
Methods inherited from class ilog.views.maps.projection.IlvProjection
addDescription, adjustLongitude, 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, setUnit, setUsingLongitudeReduction, setXYOffset
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IlvGnomonicProjection

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


IlvGnomonicProjection

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

Parameters:
source - The projection that is copied.

IlvGnomonicProjection

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

Throws:
IlvReadFileException
Since:
JViews 5.0
Method Detail

copy

public IlvProjection copy()
Copies the projection.

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

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

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

toString

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

Overrides:
toString in class Object
Since:
JViews 7.5


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