public class DefaultMeasureGeometryOperations extends Object implements MeasureGeometryOperations
MeasureGeometryOperations.
This implementation conforms to the SQL/MM and SFA 1.2.1 specifications. See Simple Feature Access - Part 1: common architecture, sec. 6.1.2.6
| Constructor and Description |
|---|
DefaultMeasureGeometryOperations() |
| Modifier and Type | Method and Description |
|---|---|
GeometryOperation<Double> |
createGetMeasureOp(Geometry geometry,
Point point)
Creates a
GeometryOperation to calculate the measure value
at the specified point |
GeometryOperation<Double> |
createGetMeasureOp(Geometry geometry,
Point point,
double tolerance)
Creates a
GeometryOperation to calculate the measure value, given that the points fall within
a specified distance from the linestring
at the specified point |
GeometryOperation<Geometry> |
createMeasureOnLengthOp(Geometry geometry,
boolean keepBeginMeasure)
Creates a
GeometryOperation that creates a new Geometry
that has the same 2D/3D-coordinates as the specified Geometry, and
with measure values that correspond with the length along it (or begin-measure + length). |
public GeometryOperation<Double> createGetMeasureOp(Geometry geometry, Point point, double tolerance)
MeasureGeometryOperationsGeometryOperation to calculate the measure value, given that the points fall within
a specified distance from the linestring
at the specified pointcreateGetMeasureOp in interface MeasureGeometryOperationsgeometry - a measured Geometrypoint - a Point on the geometrytolerance - the maximum allowed distance between geometry and pointGeometryOperation that returns the measure value at the specified point on the specified geometrypublic GeometryOperation<Double> createGetMeasureOp(Geometry geometry, Point point)
MeasureGeometryOperationsGeometryOperation to calculate the measure value
at the specified pointcreateGetMeasureOp in interface MeasureGeometryOperationsgeometry - a measured Geometrypoint - a Point on the geometryGeometryOperation that returns the measure value at the specified point on the specified geometrypublic GeometryOperation<Geometry> createMeasureOnLengthOp(Geometry geometry, boolean keepBeginMeasure)
MeasureGeometryOperationsGeometryOperation that creates a new Geometry
that has the same 2D/3D-coordinates as the specified Geometry, and
with measure values that correspond with the length along it (or begin-measure + length).
The length is calculated in the 2-dimensional X/Y-plane.
createMeasureOnLengthOp in interface MeasureGeometryOperationsgeometry - the Geometry for which to build measureskeepBeginMeasure - if true, than the measure of the first coordinate is used as start-valueGeometryOperation that returns a Geometry with measures increasing with lengthCopyright © 2015 geolatte.org. All rights reserved.