drasys.or.geom.geo
Class CoordinateSystem

java.lang.Object
  |
  +--drasys.or.geom.geo.CoordinateSystem

public class CoordinateSystem
extends java.lang.Object
implements CoordinateSystemI, java.io.Serializable

The object that describes the geographic coordinate system. The constructor for this class is private and an instance can be obtained with CoordinateSystem.getInstance(); The default ellipsoid is "GRS 1984".

See Also:
Serialized Form

Field Summary
protected static double _accuracy
           
 
Method Summary
 java.lang.String dimensionName(int i)
          Returns the name of the dimension.
 boolean equals(double a, double b)
          Returns true if the arguments are equal to with in the accuracy of the coordinate system.
 boolean equals(java.lang.Object o)
           
 double getAccuracy()
          Returns the absolute accuracy required in this coordinate system.
static EllipsoidI getEllipsoid()
          Returns the current ellipsoid used to describe the shape of the earth.
static CoordinateSystem getInstance()
           
 PointI getPointInstance(double[] coordinates)
          Returns an instance of a point object initialized to the coordinates.
 PointI getPointInstance(PointI point)
          Returns an instance of a point object initialized to point.
 PointI getPointInstance(VectorI coordinates)
          Returns an instance of a point object initialized to the coordinates.
 RangeI getRangeInstance(PointI boundaryPoint1, PointI boundaryPoint2)
          Returns an instance of a range object initialized to include the arguments.
 RangeI getRangeInstance(RangeI range)
          Returns an instance of a range object initialized to include the argument.
 boolean isSymmetric()
          Retuns true if distances are symmetric.
static void setAccuracy(double accuracy)
          Sets the absolute accuracy required in this coordinate system.
static void setEllipsoid(EllipsoidI ellipsoid)
          Sets the current ellipsoid used to describe the shape of the earth.
 int sizeOfDimensions()
          Returns the number of dimensions in the coordinate system.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_accuracy

protected static double _accuracy
Method Detail

getInstance

public static CoordinateSystem getInstance()

getAccuracy

public double getAccuracy()
Returns the absolute accuracy required in this coordinate system. The accuracy is used globally for equality tests and to terminate numerical methods. The default absolute accuracy for this coordinate system is '1.0E-6'.
Specified by:
getAccuracy in interface CoordinateSystemI

setAccuracy

public static void setAccuracy(double accuracy)
Sets the absolute accuracy required in this coordinate system. The accuracy is used globally for equality tests and to terminate numerical methods. The default absolute accuracy for this coordinate system is '1.0E-6'.

equals

public boolean equals(double a,
                      double b)
Returns true if the arguments are equal to with in the accuracy of the coordinate system.
Specified by:
equals in interface CoordinateSystemI

getEllipsoid

public static EllipsoidI getEllipsoid()
Returns the current ellipsoid used to describe the shape of the earth. This value is used globally in the 'geo' package. The default ellipsoid is 'GWS-84'.

setEllipsoid

public static void setEllipsoid(EllipsoidI ellipsoid)
Sets the current ellipsoid used to describe the shape of the earth. This value is used globally in the 'geo' package. The default ellipsoid is 'GWS-84'.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

sizeOfDimensions

public int sizeOfDimensions()
Returns the number of dimensions in the coordinate system.
Specified by:
sizeOfDimensions in interface CoordinateSystemI

dimensionName

public java.lang.String dimensionName(int i)
Returns the name of the dimension.
Specified by:
dimensionName in interface CoordinateSystemI

isSymmetric

public boolean isSymmetric()
Retuns true if distances are symmetric.
Specified by:
isSymmetric in interface CoordinateSystemI

getPointInstance

public PointI getPointInstance(PointI point)
Returns an instance of a point object initialized to point.
Specified by:
getPointInstance in interface CoordinateSystemI

getPointInstance

public PointI getPointInstance(VectorI coordinates)
Returns an instance of a point object initialized to the coordinates.
Specified by:
getPointInstance in interface CoordinateSystemI

getPointInstance

public PointI getPointInstance(double[] coordinates)
Returns an instance of a point object initialized to the coordinates.
Specified by:
getPointInstance in interface CoordinateSystemI

getRangeInstance

public RangeI getRangeInstance(PointI boundaryPoint1,
                               PointI boundaryPoint2)
Returns an instance of a range object initialized to include the arguments.
Specified by:
getRangeInstance in interface CoordinateSystemI

getRangeInstance

public RangeI getRangeInstance(RangeI range)
Returns an instance of a range object initialized to include the argument.
Specified by:
getRangeInstance in interface CoordinateSystemI

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object


Copyright(C)1997-2000 by DRA Systems all rights reserved. OpsResearch.com