public class LengthLocationMap
extends java.lang.Object
LinearLocation
for a given length
along a linear Geometry
.
Negative lengths are measured in reverse from end of the linear geometry.
Out-of-range values are clamped.Constructor and Description |
---|
LengthLocationMap(Geometry linearGeom) |
Modifier and Type | Method and Description |
---|---|
static double |
getLength(Geometry linearGeom,
LinearLocation loc)
Computes the length for a given
LinearLocation
on a linear Geometry . |
double |
getLength(LinearLocation loc) |
LinearLocation |
getLocation(double length)
Compute the
LinearLocation corresponding to a length. |
static LinearLocation |
getLocation(Geometry linearGeom,
double length)
Computes the
LinearLocation for a
given length along a linear Geometry . |
public LengthLocationMap(Geometry linearGeom)
public static LinearLocation getLocation(Geometry linearGeom, double length)
LinearLocation
for a
given length along a linear Geometry
.line
- the linear geometry to uselength
- the length index of the locationLinearLocation
for the lengthpublic static double getLength(Geometry linearGeom, LinearLocation loc)
LinearLocation
on a linear Geometry
.line
- the linear geometry to useloc
- the LinearLocation
index of the locationLinearLocation
public LinearLocation getLocation(double length)
LinearLocation
corresponding to a length.
Negative lengths are measured in reverse from end of the linear geometry.
Out-of-range values are clamped.length
- the length indexpublic double getLength(LinearLocation loc)