Package org.geolatte.geom
Class MeasureInterpolatingVisitor<P extends C2D & Measured>
- java.lang.Object
-
- org.geolatte.geom.MeasureInterpolatingVisitor<P>
-
- All Implemented Interfaces:
GeometryVisitor<P>
public class MeasureInterpolatingVisitor<P extends C2D & Measured> extends Object implements GeometryVisitor<P>
AGeometryVisitorthat derives aGeometryby interpolating on the measure values of the visitedGeometries.Interpolation is used to determine any points on the 1-dimensional geometry with an m coordinate value between SM and EM inclusively. The implementation-defined interpolation algorithm is used to estimate values between measured values, usually using a mathematical function. For example, given a measure of 6 and a 2-point linestring where the m coordinate value of the start point is 4 and the m coordinate value of the end point is 8, since 6 is halfway between 4 and 8, the interpolation algorithm would be a point on the linestring halfway between the start and end points.
- Author:
- Karel Maesen, Geovise BVBA creation-date: 4/10/12
-
-
Constructor Summary
Constructors Constructor Description MeasureInterpolatingVisitor(Geometry<P> geometry, double startMeasure, double endMeasure)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Geometry<P>result()voidvisit(AbstractGeometryCollection collection)Visits aGeometryCollection.voidvisit(LineString<P> lineString)Visits aLineString.voidvisit(Point<P> point)Visits aPointvoidvisit(Polygon polygon)Visits aPolygon.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.geolatte.geom.GeometryVisitor
endVisit
-
-
-
-
Method Detail
-
visit
public void visit(Point<P> point)
Description copied from interface:GeometryVisitorVisits aPoint- Specified by:
visitin interfaceGeometryVisitor<P extends C2D & Measured>
-
visit
public void visit(LineString<P> lineString)
Description copied from interface:GeometryVisitorVisits aLineString.- Specified by:
visitin interfaceGeometryVisitor<P extends C2D & Measured>
-
visit
public void visit(Polygon polygon)
Description copied from interface:GeometryVisitorVisits aPolygon.- Specified by:
visitin interfaceGeometryVisitor<P extends C2D & Measured>
-
visit
public void visit(AbstractGeometryCollection collection)
Description copied from interface:GeometryVisitorVisits aGeometryCollection.The collection will pass the visitor to it constituent parts.
- Specified by:
visitin interfaceGeometryVisitor<P extends C2D & Measured>
-
-