org.deegree.model.geometry
Interface GM_GenericCurve

All Known Subinterfaces:
GM_Curve, GM_CurveSegment, GM_LineString
All Known Implementing Classes:
GM_Curve_Impl, GM_CurveSegment_Impl, GM_LineString_Impl

public interface GM_GenericCurve

The interface defines the bais of curves and curve segments.

-----------------------------------------------------

Version:
$Revision: 1.1.1.1 $ $Date: 2002/09/25 16:01:48 $

Author:
Andreas Poth

Method Summary
 GM_LineString getAsLineString()
          returns the curve as GM_LineString
 GM_Point getEndPoint()
          returns the last point of the curve
 double getLength()
          returns the length of the curve in units of the related spatial reference system
 GM_Point getStartPoint()
          returns the first point of the curve
 

Method Detail

getLength

public double getLength()
returns the length of the curve in units of the related spatial reference system


getStartPoint

public GM_Point getStartPoint()
returns the first point of the curve


getEndPoint

public GM_Point getEndPoint()
returns the last point of the curve


getAsLineString

public GM_LineString getAsLineString()
                              throws GM_Exception
returns the curve as GM_LineString

Throws:
GM_Exception