ilog.views.maps.projection
Class IlvAzimuthalEquidistantProjection

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

public class IlvAzimuthalEquidistantProjection
extends IlvProjection

This class defines the Azimuthal Equidistant projection. With Azimuthal projections, also called plane projections, the spherical globe is projected onto a plane surface. This type of projection is often used to portray the regions around the Poles. The plane surface is therefore generally placed above the North or the South Pole.

With Azimuthal Equidistant projections, distances from the center are true. These projections are used to show air-route distances, which appear as straight lines when drawn from the projection center.

CADGR files representing polar areas are provided with this projection.

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

This projection is neither Conformal nor Equal Area.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class ilog.views.maps.projection.IlvProjection
CONFORMAL, EQUAL_AREA, NONE
 
Constructor Summary
IlvAzimuthalEquidistantProjection()
          Creates an instance of the class IlvAzimuthalEquidistantProjection.
IlvAzimuthalEquidistantProjection(IlvAzimuthalEquidistantProjection source)
          Creates a new IlvAzimuthalEquidistantProjection by copying an existing one.
IlvAzimuthalEquidistantProjection(IlvInputStream stream)
          Reads the object from an IlvInputStream.
 
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.
 boolean isGuam()
          Returns true if the guam elliptical equation is used.
 void setEllipsoid(IlvEllipsoid ellipsoid)
          Sets the ellipsoid used for the projection.
 void setGuam(boolean guam)
          Sets the projection to use the guam equation, which is an alternate form of the projection for an ellipsoid.
 void setLLCenter(double lon, double lat)
          Specifies the central meridian and the central parallel associated with the projection and updates the internal parameters.
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, setUnit, setUsingLongitudeReduction, setXYOffset
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IlvAzimuthalEquidistantProjection

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


IlvAzimuthalEquidistantProjection

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

Parameters:
stream - the input stream.
Throws:
IlvReadFileException - if the format is not correct.
Since:
JViews 3.0

IlvAzimuthalEquidistantProjection

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

Parameters:
source - the projection that is copied.
Since:
JViews 3.0
Method Detail

copy

public IlvProjection copy()
Copies the projection.

Specified by:
copy in class IlvProjection
Returns:
a copy of the projection.
Since:
JViews 3.0

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.

eForward

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

Overrides:
eForward 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()

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

setEllipsoid

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

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 and updates the internal parameters. 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)

setGuam

public void setGuam(boolean guam)
Sets the projection to use the guam equation, which is an alternate form of the projection for an ellipsoid. By default, the guam equation is not used.

Parameters:
guam - if true, the guam elliptical equation is used.

isGuam

public final boolean isGuam()
Returns true if the guam elliptical equation is used.


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

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.