ilog.views.maps.projection
Class IlvHorizontalShiftDatum

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

public class IlvHorizontalShiftDatum
extends IlvHorizontalDatum

This class describes a horizontal datum defined by a translation of the ellipsoid. Usually, the translation is performed so that the translated ellipsoid is tangent to the geoid surface in the region of interest. An IlvHorizontalShiftDatum object is based on the shift parameters relative to the WGS84 datum used by the Molodensky formula. system. Parameters for various datum can be found on this page .

Since:
JViews 3.0
See Also:
IlvMolodenskyConverter, Serialized Form

Field Summary
static IlvHorizontalShiftDatum SPHERE_WGS84
          A convenient datum with a 6370997 m radius sphere as ellipsoid, and no shifts.
static IlvHorizontalShiftDatum WGS84
          The WGS84 datum.
 
Constructor Summary
IlvHorizontalShiftDatum(IlvInputStream stream)
          Reads the object from an IlvInputStream.
IlvHorizontalShiftDatum(String name, String regionOfUse, IlvEllipsoid ellipsoid, double dx, double dy, double dz)
          Initializes an instance of the IlvHorizontalDatum class.
 
Method Summary
 boolean equals(Object object)
          Returns true if the specified datum is equal to this datum.
 boolean equivalent(IlvHorizontalDatum d)
          Returns true if the datum passed as the argument is equivalent to the object.
 double getDX()
          Returns the shift on the x-axis, in meters.
 double getDY()
          Returns the shift on the y-axis, in meters.
 double getDZ()
          Returns the shift on the z-axis, in meters.
 String getRegionOfUse()
          Returns the region where the datum is used.
 void write(IlvOutputStream stream)
          Writes the object into an IlvOutputStream.
 
Methods inherited from class ilog.views.maps.projection.IlvHorizontalDatum
GetConverterFactory, getEllipsoid, getName, SetConverterFactory, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

WGS84

public static final IlvHorizontalShiftDatum WGS84
The WGS84 datum.


SPHERE_WGS84

public static final IlvHorizontalShiftDatum SPHERE_WGS84
A convenient datum with a 6370997 m radius sphere as ellipsoid, and no shifts.

Since:
JViews 5.0
Constructor Detail

IlvHorizontalShiftDatum

public IlvHorizontalShiftDatum(String name,
                               String regionOfUse,
                               IlvEllipsoid ellipsoid,
                               double dx,
                               double dy,
                               double dz)
Initializes an instance of the IlvHorizontalDatum class.

Parameters:
name - Name of the datum.
regionOfUse - String describing where the datum is used.
dx - Shift on the x axis, in meters.
dy - Shift on the y axis, in meters.
dz - Shift on the z axis, in meters.

IlvHorizontalShiftDatum

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

Parameters:
stream - The input stream.
Throws:
IlvReadFileException - If the format is not correct.
Method Detail

write

public void write(IlvOutputStream stream)
           throws IOException
Writes the object into an IlvOutputStream.

Specified by:
write in interface IlvPersistentObject
Overrides:
write in class IlvHorizontalDatum
Parameters:
stream - the output stream
Throws:
IOException - thrown when an exception occurs during the write operation for this object.

getRegionOfUse

public final String getRegionOfUse()
Returns the region where the datum is used.


getDX

public final double getDX()
Returns the shift on the x-axis, in meters.


getDY

public final double getDY()
Returns the shift on the y-axis, in meters.


getDZ

public final double getDZ()
Returns the shift on the z-axis, in meters.


equals

public boolean equals(Object object)
Returns true if the specified datum is equal to this datum.

Overrides:
equals in class IlvHorizontalDatum
Parameters:
object - The object to compare.
Since:
JViews 5.0
See Also:
equivalent(ilog.views.maps.projection.IlvHorizontalDatum)

equivalent

public boolean equivalent(IlvHorizontalDatum d)
Returns true if the datum passed as the argument is equivalent to the object.

Specified by:
equivalent in class IlvHorizontalDatum


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