org.geotools.geometry.jts.spatialschema.geometry.geometry
Class LineSegmentImpl

java.lang.Object
  extended by org.geotools.geometry.jts.spatialschema.geometry.geometry.GenericCurveImpl
      extended by org.geotools.geometry.jts.spatialschema.geometry.geometry.LineStringImpl
          extended by org.geotools.geometry.jts.spatialschema.geometry.geometry.LineSegmentImpl
All Implemented Interfaces:
JTSGeometry, org.opengis.geometry.coordinate.GenericCurve, org.opengis.geometry.coordinate.LineSegment, org.opengis.geometry.coordinate.LineString, org.opengis.geometry.primitive.CurveSegment

public class LineSegmentImpl
extends LineStringImpl
implements org.opengis.geometry.coordinate.LineSegment

Two distinct direct positions (the start point and end point) joined by a straight line. Thus its interpolation attribute shall be LINEAR. The default parameterization is:

 L = endParam - startParam
 c(s) = ControlPoint[1]+((s-startParam)/L)*(ControlPoint[2]-ControlPoint[1])
 
Any other point in the control point array must fall on this line. The control points of a LineSegment shall all lie on the straight line between its start point and end point. Between these two points, other positions may be interpolated linearly. The linear interpolation, given using a constructive parameter t, 0 ? t ? 1.0, where c(o) = c.startPoint and c(1)=c.endPoint, is:
c(t) = c(0)(1-t) + c(1)t

Version:
2.0
Author:
ISO/DIS 19107, OpenGIS® consortium
See Also:
GeometryFactory#createLineSegment

Field Summary
 
Fields inherited from class org.geotools.geometry.jts.spatialschema.geometry.geometry.GenericCurveImpl
parent
 
Constructor Summary
LineSegmentImpl()
           
 
Method Summary
 
Methods inherited from class org.geotools.geometry.jts.spatialschema.geometry.geometry.LineStringImpl
asLineSegments, asLineString, computeJTSPeer, forConstructiveParam, forParam, getBoundary, getControlPoints, getCurve, getEndConstructiveParam, getEndParam, getEndPoint, getInterpolation, getNumDerivativeInterior, getNumDerivativesAtEnd, getNumDerivativesAtStart, getNumDerivativesInterior, getParamForPoint, getSamplePoints, getStartConstructiveParam, getStartParam, getStartPoint, getTangent, length, length, reverse
 
Methods inherited from class org.geotools.geometry.jts.spatialschema.geometry.geometry.GenericCurveImpl
getJTSGeometry, invalidateCachedJTSPeer, setJTSPeer, setParent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.opengis.geometry.coordinate.LineString
asLineSegments, getControlPoints
 
Methods inherited from interface org.opengis.geometry.primitive.CurveSegment
getBoundary, getCurve, getInterpolation, getNumDerivativesAtEnd, getNumDerivativesAtStart, getNumDerivativesInterior, getSamplePoints, reverse
 
Methods inherited from interface org.opengis.geometry.coordinate.GenericCurve
asLineString, forConstructiveParam, forParam, getEndConstructiveParam, getEndParam, getEndPoint, getParamForPoint, getStartConstructiveParam, getStartParam, getStartPoint, getTangent, length, length
 
Methods inherited from interface org.geotools.geometry.jts.JTSGeometry
getJTSGeometry, invalidateCachedJTSPeer
 

Constructor Detail

LineSegmentImpl

public LineSegmentImpl()


Copyright © 1996-2010 Geotools. All Rights Reserved.