deegree 2.2 (2008/12/22 11:33 build-3038-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

 class LineStringImpl
extends CurveSegmentImpl
implements LineString, Serializable

default implementation of the LineString interface of package jago.model. ------------------------------------------------------------

Version:
10.6.2001
Author:
Andreas Poth

Field Summary
 
Fields inherited from class org.deegree.model.spatialschema.CurveSegmentImpl
crs, points
 
Constructor Summary
LineStringImpl(Position[] gmps, CoordinateSystem cs)
          Creates a new LineStringImpl object.
 
Method Summary
 Object clone()
          returns a shallow copy of the geometry
 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()
          returns the length of the curve in units of the related spatial reference system
 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

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

Parameters:
gmps -
cs -
Throws:
GeometryException
Method Detail

clone

public Object clone()
returns a shallow copy of the geometry

Overrides:
clone in class Object

getLength

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

Specified by:
getLength in interface GenericCurve

getAsLineString

public LineString getAsLineString()
                           throws GeometryException
returns a reference to itself

Specified by:
getAsLineString in interface GenericCurve
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

contains

public boolean contains(Geometry gmo)
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

deegree 2.2 (2008/12/22 11:33 build-3038-official)

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