org.deegree.model.spatialschema
Class LineStringImpl
java.lang.Object
org.deegree.model.spatialschema.CurveSegmentImpl
org.deegree.model.spatialschema.LineStringImpl
- All Implemented Interfaces:
- java.io.Serializable, CurveSegment, GenericCurve, LineString
public class LineStringImpl
- extends CurveSegmentImpl
- implements LineString
default implementation of the LineString interface of package deegree.model.spatialschema.
- Version:
- $Revision: 18195 $, $Date: 2009-06-18 17:55:39 +0200 (Do, 18 Jun 2009) $
- Author:
- Andreas Poth, last edited by: $Author: mschneider $
- See Also:
- Serialized Form
Method Summary |
java.lang.Object |
clone()
|
boolean |
contains(Geometry gmo)
The Boolean valued operation "contains" shall return TRUE if this Geometry contains another
Geometry. |
LineString |
getAsLineString()
returns a reference to itself |
double |
getLength()
|
boolean |
intersects(Geometry gmo)
The Boolean valued operation "intersects" shall return TRUE if this Geometry intersects another Geometry. |
Methods inherited from class java.lang.Object |
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
LineStringImpl
protected LineStringImpl(Position[] gmps,
CoordinateSystem cs)
throws GeometryException
- Creates a new LineStringImpl object.
- Parameters:
gmps
- cs
-
- Throws:
GeometryException
clone
public java.lang.Object clone()
- Overrides:
clone
in class CurveSegmentImpl
getLength
public double getLength()
- Specified by:
getLength
in interface GenericCurve
- Returns:
- length of the curve in units of the related spatial reference system
getAsLineString
public LineString getAsLineString()
throws GeometryException
- returns a reference to itself
- Specified by:
getAsLineString
in interface GenericCurve
- Returns:
- the curve as LineString
- Throws:
GeometryException
intersects
public boolean intersects(Geometry gmo)
- The Boolean valued operation "intersects" shall return TRUE if this Geometry intersects another Geometry. Within
a Complex, the Primitives do not intersect one another. In general, topologically structured data uses shared
geometric objects to capture intersection information.
- Specified by:
intersects
in interface CurveSegment
- Returns:
- true if this geometry intersects with given geometry.
contains
public boolean contains(Geometry gmo)
- Description copied from class:
CurveSegmentImpl
- The Boolean valued operation "contains" shall return TRUE if this Geometry contains another
Geometry.
- Specified by:
contains
in interface CurveSegment
- Overrides:
contains
in class CurveSegmentImpl
- Returns:
- true if this geometry contains given geometry.
an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org