public interface MGeometry
extends java.lang.Cloneable, java.io.Serializable
| Modifier and Type | Field and Description |
|---|---|
static int |
CONSTANT
Measures are constant across the Geometry
|
static int |
DECREASING
Measures are decreasing in the direction of the MGeometry
|
static int |
INCREASING
Measures are increasing in the direction of the MGeometry
|
static int |
NON_MONOTONE
Measures are not monotone along the Geometry
|
| Modifier and Type | Method and Description |
|---|---|
Geometry |
asGeometry()
Returns this
MGeometry as a Geometry. |
Coordinate |
getCoordinateAtM(double m)
Returns the Coordinate along the Geometry at the measure value
|
CoordinateSequence[] |
getCoordinatesBetween(double begin,
double end)
Returns the coordinatesequence(s) containing all coordinates between the
begin and end measures.
|
GeometryFactory |
getFactory()
Returns the GeometryFactory of the MGeometry
|
double |
getMatCoordinate(Coordinate c,
double tolerance)
Returns the measure value at the Coordinate
|
double |
getMaxM()
Returns the maximum M-value of the MGeometry
|
double |
getMinM()
Returns the minimum M-value of the MGeometry
|
boolean |
isMonotone(boolean strict)
Determine whether the LRS measures (not the x,y,z coordinates) in the
Coordinate sequence of the geometry is Monotone.
|
void |
measureOnLength(boolean keepBeginMeasure)
Builds measures along the Geometry based on the length from the beginning
(first coordinate) of the Geometry.
|
static final int INCREASING
static final int CONSTANT
static final int DECREASING
static final int NON_MONOTONE
double getMatCoordinate(Coordinate c,
double tolerance)
throws MGeometryException
c - the Coordinate for which the measure value is soughttolerance - distance to the MGeometry within which Coordinate c has to lieMGeometryException - when this MGeometry is not monotonevoid measureOnLength(boolean keepBeginMeasure)
keepBeginMeasure - -
if true, the measure of the first coordinate is maintained and
used as start value, unless this measure is Double.NaNCoordinate getCoordinateAtM(double m)
throws MGeometryException
m - measure valueMGeometryException - when MGeometry is not monotoneCoordinateSequence[] getCoordinatesBetween(double begin,
double end)
throws MGeometryException
begin - begin measureend - end measureMGeometryException - when this MGeometry is not monotoneGeometryFactory getFactory()
double getMinM()
double getMaxM()
boolean isMonotone(boolean strict)
Geometry asGeometry()
MGeometry as a Geometry.
Modifying the returned Geometry will result in internal state changes.