ilog.views.maps.projection
Class IlvHorizontalDatum

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

public abstract class IlvHorizontalDatum
extends Object
implements Serializable, IlvPersistentObject

This abstract class is the base class for classes describing a horizontal datum.

Since:
JViews 3.0
See Also:
Serialized Form

Constructor Summary
protected IlvHorizontalDatum(IlvInputStream stream)
          Reads an IlvHorizontalDatum object from an IlvInputStream.
protected IlvHorizontalDatum(String name, IlvEllipsoid ellipsoid)
          Initializes an IlvHorizontalDatum object, with the specified name and ellipsoid.
 
Method Summary
 boolean equals(Object object)
          Returns true if the specified datum is equal to this datum.
abstract  boolean equivalent(IlvHorizontalDatum d)
          Returns true, if the datum passed as the argument describes the same coordinate system as the current object.
static IlvHorizontalDatumConverterFactory GetConverterFactory()
          Returns a factory that can create converters to convert coordinates from one datum to another.
 IlvEllipsoid getEllipsoid()
          Returns the ellipsoid for this datum.
 String getName()
          Returns the name of this datum.
static void SetConverterFactory(IlvHorizontalDatumConverterFactory factory)
          Sets a factory to create converters to convert coordinates from one datum to another.
 String toString()
          Returns the string representation.
 void write(IlvOutputStream stream)
          Writes the object to an IlvOutputStream.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IlvHorizontalDatum

protected IlvHorizontalDatum(String name,
                             IlvEllipsoid ellipsoid)
Initializes an IlvHorizontalDatum object, with the specified name and ellipsoid.

Parameters:
name - The name of the datum.
ellipsoid - The ellipsoid for this datum.
Since:
JViews 5.0

IlvHorizontalDatum

protected IlvHorizontalDatum(IlvInputStream stream)
                      throws IlvReadFileException
Reads an IlvHorizontalDatum object from an IlvInputStream.

Throws:
IlvReadFileException
Method Detail

write

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

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

getEllipsoid

public final IlvEllipsoid getEllipsoid()
Returns the ellipsoid for this datum.


getName

public String getName()
Returns the name of this datum.

Since:
JViews 5.0

equivalent

public abstract boolean equivalent(IlvHorizontalDatum d)
Returns true, if the datum passed as the argument describes the same coordinate system as the current object.


equals

public boolean equals(Object object)
Returns true if the specified datum is equal to this datum. The default implementation returns true if the datums are equivalent and if they have the same name.

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

GetConverterFactory

public static IlvHorizontalDatumConverterFactory GetConverterFactory()
Returns a factory that can create converters to convert coordinates from one datum to another. The default factory supports the conversion using the Molodensky formula.


SetConverterFactory

public static void SetConverterFactory(IlvHorizontalDatumConverterFactory factory)
Sets a factory to create converters to convert coordinates from one datum to another.


toString

public String toString()
Returns the string representation.

Overrides:
toString in class Object
Since:
JViews 5.0


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