|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface MGeometry
Defines geometries that carry measures in their CoordinateSequence.
Field Summary | |
---|---|
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 |
Method Summary | |
---|---|
com.vividsolutions.jts.geom.Geometry |
asGeometry()
Returns this MGeometry as a Geometry . |
com.vividsolutions.jts.geom.Coordinate |
getCoordinateAtM(double m)
Returns the Coordinate along the Geometry at the measure value |
com.vividsolutions.jts.geom.CoordinateSequence[] |
getCoordinatesBetween(double begin,
double end)
Returns the coordinatesequence(s) containing all coordinates between the begin and end measures. |
com.vividsolutions.jts.geom.GeometryFactory |
getFactory()
Returns the GeometryFactory of the MGeometry |
double |
getMatCoordinate(com.vividsolutions.jts.geom.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. |
Field Detail |
---|
static final int INCREASING
static final int CONSTANT
static final int DECREASING
static final int NON_MONOTONE
Method Detail |
---|
double getMatCoordinate(com.vividsolutions.jts.geom.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 lie
When the geometry is a ring or is self-intersecting more coordinates may be determined by one coordinate. In that case, the lowest measure is returned.
MGeometryException
- 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.NaNcom.vividsolutions.jts.geom.Coordinate getCoordinateAtM(double m) throws MGeometryException
m
- measure value
MGeometryException
- when MGeometry is not monotonecom.vividsolutions.jts.geom.CoordinateSequence[] getCoordinatesBetween(double begin, double end) throws MGeometryException
begin
- begin measureend
- end measure
MGeometryException
- when this MGeometry is not monotonecom.vividsolutions.jts.geom.GeometryFactory getFactory()
double getMinM()
double getMaxM()
boolean isMonotone(boolean strict)
com.vividsolutions.jts.geom.Geometry asGeometry()
MGeometry
as a Geometry
.
Modifying the returned Geometry
will result in internal state changes.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |