deegree 2.3 (2010/04/09 10:10 build-4-official)

org.deegree.model.spatialschema
Class LineStringImpl

java.lang.Object
  extended by org.deegree.model.spatialschema.CurveSegmentImpl
      extended by org.deegree.model.spatialschema.LineStringImpl
All Implemented Interfaces:
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

Field Summary
 
Fields inherited from class org.deegree.model.spatialschema.CurveSegmentImpl
crs, points
 
Constructor Summary
protected LineStringImpl(Position[] gmps, CoordinateSystem cs)
          Creates a new LineStringImpl object.
 
Method Summary
 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 org.deegree.model.spatialschema.CurveSegmentImpl
equals, getCoordinateSystem, getEndPoint, getNumberOfPoints, getPositionAt, getPositions, getStartPoint, reverse, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.deegree.model.spatialschema.CurveSegment
getCoordinateSystem, getNumberOfPoints, getPositionAt, getPositions, reverse
 
Methods inherited from interface org.deegree.model.spatialschema.GenericCurve
getEndPoint, getStartPoint
 

Constructor Detail

LineStringImpl

protected LineStringImpl(Position[] gmps,
                         CoordinateSystem cs)
                  throws GeometryException
Creates a new LineStringImpl object.

Parameters:
gmps -
cs -
Throws:
GeometryException
Method Detail

clone

public 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.

deegree 2.3 (2010/04/09 10:10 build-4-official)

an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org