ilog.views.maps.srs.coordsys
Class IlvGeocentricCoordinateSystem

java.lang.Object
  extended by ilog.views.maps.srs.coordsys.IlvCoordinateSystem
      extended by ilog.views.maps.srs.coordsys.IlvGeocentricCoordinateSystem
All Implemented Interfaces:
IlvPersistentObject

public class IlvGeocentricCoordinateSystem
extends IlvCoordinateSystem

The geocentric coordinate system.
This coordinate system is a three-dimensional Cartesian system with the x-axis positive towards the Greenwich meridian and equator, the y-axis through the intersection of the equator with longitude 90 degrees East, and the z-axis corresponding to the polar axis and positive northwards.

Since:
JViews 5.0

Field Summary
static IlvGeocentricCoordinateSystem KERNEL
          The default geocentric coordinate system, with units in meters and the WGS84 datum.
 
Constructor Summary
IlvGeocentricCoordinateSystem(IlvGeocentricCoordinateSystem source)
          Constructs a new IlvCoordinateSystem by copying an existing one.
IlvGeocentricCoordinateSystem(IlvInputStream stream)
          Reads the object from an IlvInputStream object.
IlvGeocentricCoordinateSystem(String name, IlvLinearUnit unit, IlvHorizontalDatum datum)
          Constructs a new geocentric coordinate system.
 
Method Summary
 IlvCoordinateSystem copy()
          Returns a copy of this coordinate system.
 boolean equals(Object other)
          Returns true if this coordinate system is equal to the specified coordinate system.
 IlvHorizontalDatum getHorizontalDatum()
          Returns the horizontal datum of this geocentric coordinate system.
 IlvLinearUnit getLinearUnit()
          Returns the linear unit.
 String toString()
          Returns a string representation for this coordinate system.
 void write(IlvOutputStream stream)
          Writes the object to the specified IlvOutputStream.
 
Methods inherited from class ilog.views.maps.srs.coordsys.IlvCoordinateSystem
getAxisName, getDimension, getName, getUnit, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

KERNEL

public static final IlvGeocentricCoordinateSystem KERNEL
The default geocentric coordinate system, with units in meters and the WGS84 datum.

Constructor Detail

IlvGeocentricCoordinateSystem

public IlvGeocentricCoordinateSystem(String name,
                                     IlvLinearUnit unit,
                                     IlvHorizontalDatum datum)
Constructs a new geocentric coordinate system.
The datum parameter specifies a datum whose ellipsoid is not used. Only the datum shifts are significant.

Parameters:
name - The name of the coordinate system.
unit - The linear unit of the coordinate system.
datum - The datum for the coordinate system.

IlvGeocentricCoordinateSystem

public IlvGeocentricCoordinateSystem(IlvGeocentricCoordinateSystem source)
Constructs a new IlvCoordinateSystem by copying an existing one.

Parameters:
source - The source coordinate system.

IlvGeocentricCoordinateSystem

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

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 to the specified IlvOutputStream.

Specified by:
write in interface IlvPersistentObject
Overrides:
write in class IlvCoordinateSystem
Parameters:
stream - The stream to write this unit to.
Throws:
IOException - If an I/O error occurs.

copy

public IlvCoordinateSystem copy()
Returns a copy of this coordinate system.

Specified by:
copy in class IlvCoordinateSystem

getLinearUnit

public IlvLinearUnit getLinearUnit()
Returns the linear unit.


getHorizontalDatum

public IlvHorizontalDatum getHorizontalDatum()
Returns the horizontal datum of this geocentric coordinate system.


toString

public String toString()
Returns a string representation for this coordinate system. The string representation of this coordinate system is "geocentric(unit)" where unit is the linear unit of this coordinate system.

Overrides:
toString in class Object

equals

public boolean equals(Object other)
Returns true if this coordinate system is equal to the specified coordinate system.

Overrides:
equals in class IlvCoordinateSystem


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