As soon as you work with different coordinate systems
and datums, you need to be able to convert from one to another. When
working with coordinate systems, this can be performed using functions.
The coordinate transformations, as defined by the
ilog.views.maps.srs.coordtrans.
IlvCoordinateTransformation class, contain the information that allows you to
manipulate them:
The source coordinate
system
The target coordinate
system
The Math
Transform to convert coordinates from one to another
In addition to that, all the coordinate transformations
implement the following methods:
This method is the basic
one. It transforms the source coordinate, storing the result in result
,
or in a newly allocated coordinate if result
is null
.
The method returns the transformed point.
This is the vectorized
version of the previous method. This allows the transformations to
convert a whole batch of coordinates, possibly allowing some optimizations
to be performed.
Optionally, transformations can implement
the
getInverse method that returns an inverse transformation.
The following sections describe the predefined built
in transformations of JViews Maps, and provide some examples of the
transformation package.