|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectilog.views.maps.srs.coordtrans.IlvCoordinateTransformation
public class IlvCoordinateTransformation
Describes a coordinate transformation.
| Constructor Summary | |
|---|---|
protected |
IlvCoordinateTransformation(IlvCoordinateSystem sourceCS,
IlvCoordinateSystem targetCS)
Constructor. |
|
IlvCoordinateTransformation(IlvCoordinateSystem sourceCS,
IlvCoordinateSystem targetCS,
IlvMathTransform transform)
Constructor. |
|
IlvCoordinateTransformation(IlvInputStream stream)
Reads an IlvCoordinateTransformation from the specified
input stream. |
| Method Summary | |
|---|---|
static IlvCoordinateTransformation |
CreateTransformation(IlvCoordinateSystem sourceCS,
IlvCoordinateSystem targetCS)
Returns a coordinate transformation to convert coordinates from one coordinate system to another. |
IlvCoordinateTransformation |
getInverse()
Returns an inverse transformation for this coordinate transformation. |
IlvCoordinateSystem |
getSourceCS()
Returns the source coordinate system for this transformation. |
IlvCoordinateSystem |
getTargetCS()
Returns the destination coordinate system for this transformation. |
IlvMathTransform |
getTransform()
Returns the transformation associated to this transformation. |
IlvCoordinate[] |
transform(IlvCoordinate[] sourceCP,
IlvCoordinate[] result)
Transforms the specified array of coordinate points, and puts the resulting coordinates in result. |
IlvCoordinate |
transform(IlvCoordinate sourceCP,
IlvCoordinate result)
Transforms the specified source coordinate point, and puts the result coordinate in result. |
void |
write(IlvOutputStream stream)
Writes this IlvCoordinateTransformation to the
specified output file. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public IlvCoordinateTransformation(IlvCoordinateSystem sourceCS,
IlvCoordinateSystem targetCS,
IlvMathTransform transform)
protected IlvCoordinateTransformation(IlvCoordinateSystem sourceCS,
IlvCoordinateSystem targetCS)
public IlvCoordinateTransformation(IlvInputStream stream)
throws IlvReadFileException
IlvCoordinateTransformation from the specified
input stream.
stream - The IlvInputStream.
IlvReadFileException - If a transformation cannot be read
from the input stream.| Method Detail |
|---|
public void write(IlvOutputStream stream)
throws IOException
IlvCoordinateTransformation to the
specified output file.
write in interface IlvPersistentObjectstream - The IlvOutputStream.
IOException - If an error occurs.public IlvCoordinateSystem getSourceCS()
public IlvCoordinateSystem getTargetCS()
public IlvMathTransform getTransform()
public IlvCoordinate transform(IlvCoordinate sourceCP,
IlvCoordinate result)
throws IlvCoordinateTransformationException
result. If result is null,
a new coordinate is allocated and then returned.
IlvCoordinateTransformationException
public IlvCoordinate[] transform(IlvCoordinate[] sourceCP,
IlvCoordinate[] result)
throws IlvCoordinateTransformationException
result. If result is
null, a new array of coordinate is allocated.
IlvCoordinateTransformationExceptionpublic IlvCoordinateTransformation getInverse()
public static IlvCoordinateTransformation CreateTransformation(IlvCoordinateSystem sourceCS,
IlvCoordinateSystem targetCS)
IlvMathTransform
that is created using the following rules:
| Source system ®
Target system ¯ |
Geocentric | Geographic | Projected |
|---|---|---|---|
| Geocentric | Affine transform made from:
|
GeocentricEllipsoidal | Geocentric to geographic
geographic to projected |
| Geographic | EllipsoidalGeocentric | AbridgedMolodenski | Geographic to geographic geographic to projected |
| Projected | Projected to geographic geographic to geocentric |
Projected to geographic geographic to geographic |
Projected to geographic Geographic to geographic Geographic to Projected |
|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||