Programming with JViews Maps > Ellipsoid and Geodetic Datums > Map Projections > Projection Methods and Parameters

This section describes projection methods and parameters. It covers the following topics:

Forward and Inverse Methods

Projections are implemented using the forward and inverse methods:

These methods can throw exceptions of two different types that both inherit from the class IlvProjectionException:

To know whether these features are implemented in the projection you are using, use the methods IlvProjection.isEllipsoidEnabled and IlvProjection.isInverseEnabled.

Projection Parameters

Following are the parameters that you can set for a projection:

You can also:

mapsprg_datumsab8.gif

If an application handles geocentric data, this parameter must be set. Most of the available cartographic data available is expressed with geographic latitudes.

The above parameters are common to all the projections. They can be set with the API of the class IlvProjection, which is the base class of all the projections in the package. Some projections have additional specific parameters. For example, secant latitudes can be specified for a conic projection, or the latitude of the true scale can be specified for most cylindrical projections. For more information, refer to the documentation of the API for each projection.

Projection Utilities

The class IlvProjectionUtil provides conversion utilities to convert radians to degrees, and vice versa.