drasys.or.geom.geo
Class Geo

java.lang.Object
  |
  +--drasys.or.geom.geo.Geo
Direct Known Subclasses:
Point, Range

public abstract class Geo
extends java.lang.Object
implements GeoI

A base class for the Geo objects.


Constructor Summary
Geo()
           
 
Method Summary
 CoordinateSystemI coordinateSystem()
          Returns the geographic coordinate system.
 EllipsoidI ellipsoid()
          Returns the default ellipsoid.
 PointI getCentroid()
          Returns a PointI describing the centroid of the object
 double getDistanceProxyTo(PointI point)
          Returns an easily computable proxy that can be used to compare the distance to a point.
 double getDistanceTo(PointI point)
          Returns the distance to a point.
 PointI getNearestPointTo(PointI point)
          Returns a PointI describing the point on the boundary closest to 'point'.
 RangeI getRange()
          Returns a RangeI describing the extent of the object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Geo

public Geo()
Method Detail

ellipsoid

public EllipsoidI ellipsoid()
Returns the default ellipsoid.
Specified by:
ellipsoid in interface GeoI

coordinateSystem

public CoordinateSystemI coordinateSystem()
Returns the geographic coordinate system.

getDistanceTo

public double getDistanceTo(PointI point)
Description copied from interface: GeomI
Returns the distance to a point.

getDistanceProxyTo

public double getDistanceProxyTo(PointI point)
Description copied from interface: GeomI
Returns an easily computable proxy that can be used to compare the distance to a point.

getRange

public RangeI getRange()
Description copied from interface: GeomI
Returns a RangeI describing the extent of the object.

getCentroid

public PointI getCentroid()
Description copied from interface: GeomI
Returns a PointI describing the centroid of the object

getNearestPointTo

public PointI getNearestPointTo(PointI point)
Description copied from interface: GeomI
Returns a PointI describing the point on the boundary closest to 'point'.


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