ilog.views.maps.srs.coordtrans
Class IlvGeocentricTransform

java.lang.Object
  extended by ilog.views.maps.srs.coordtrans.IlvGeocentricTransform
All Implemented Interfaces:
IlvPersistentObject, IlvMathTransform
Direct Known Subclasses:
IlvGeocentricTransform.EllipsoidalGeocentric, IlvGeocentricTransform.GeocentricEllipsoidal

public abstract class IlvGeocentricTransform
extends Object
implements IlvMathTransform, IlvPersistentObject

The transformation to transform geocentric coordinates to ellipsoidal and vice versa.

Since:
JViews 5.0

Nested Class Summary
static class IlvGeocentricTransform.EllipsoidalGeocentric
          The transformation to transform ellipsoidal coordinates to geocentric coordinates.
static class IlvGeocentricTransform.GeocentricEllipsoidal
          The transformation to transform geocentric coordinates to ellipsoidal coordinates.
 
Constructor Summary
protected IlvGeocentricTransform(IlvCoordinateSystem sourceCS, IlvCoordinateSystem targetCS)
          Constructor.
protected IlvGeocentricTransform(IlvInputStream stream)
          Reads an IlvGeocentricTransformation from the specified input stream.
 
Method Summary
 IlvCoordinateSystem getSourceCS()
          Returns the source coordinate system for this transformation.
 int getSourceDimension()
          Returns the dimension of source coordinates.
 IlvCoordinateSystem getTargetCS()
          Returns the destination coordinate system for this transformation.
 int getTargetDimension()
          Returns the dimension of target coordinates.
 boolean isIdentity()
          Returns true if the transformation is an identity.
 IlvCoordinate[] transform(IlvCoordinate[] sourceCP, IlvCoordinate[] result)
          Transforms the specified array of coordinate points, and puts the resulting coordinates in result.
 void write(IlvOutputStream stream)
          Writes this transformation to the specified output file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface ilog.views.maps.srs.coordtrans.IlvMathTransform
getInverse, transform
 

Constructor Detail

IlvGeocentricTransform

protected IlvGeocentricTransform(IlvCoordinateSystem sourceCS,
                                 IlvCoordinateSystem targetCS)
Constructor.


IlvGeocentricTransform

protected IlvGeocentricTransform(IlvInputStream stream)
                          throws IlvReadFileException
Reads an IlvGeocentricTransformation from the specified input stream.

Parameters:
stream - The IlvInputStream.
Throws:
IlvReadFileException - If a transformation cannot be read from the input stream.
Method Detail

write

public void write(IlvOutputStream stream)
           throws IOException
Writes this transformation to the specified output file.

Specified by:
write in interface IlvPersistentObject
Parameters:
stream - The IlvOutputStream.
Throws:
IOException - If an error occurs.

transform

public IlvCoordinate[] transform(IlvCoordinate[] sourceCP,
                                 IlvCoordinate[] result)
                          throws IlvCoordinateTransformationException
Transforms the specified array of coordinate points, and puts the resulting coordinates in result. If result is null, a new array of coordinate is allocated.

Specified by:
transform in interface IlvMathTransform
Throws:
IlvCoordinateTransformationException

getSourceDimension

public int getSourceDimension()
Returns the dimension of source coordinates.

Specified by:
getSourceDimension in interface IlvMathTransform

getTargetDimension

public int getTargetDimension()
Returns the dimension of target coordinates.

Specified by:
getTargetDimension in interface IlvMathTransform

isIdentity

public boolean isIdentity()
Returns true if the transformation is an identity.

Specified by:
isIdentity in interface IlvMathTransform

getSourceCS

public IlvCoordinateSystem getSourceCS()
Returns the source coordinate system for this transformation.


getTargetCS

public IlvCoordinateSystem getTargetCS()
Returns the destination coordinate system for this transformation.



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