|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.vividsolutions.jts.linearref.LengthLocationMap
Computes the 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 Summary | |
LengthLocationMap(Geometry linearGeom)
|
|
| Method Summary | |
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. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public LengthLocationMap(Geometry linearGeom)
| Method Detail |
public static LinearLocation getLocation(Geometry linearGeom,
double length)
LinearLocation for a
given length along a linear Geometry.
length - the length index of the location
LinearLocation for the length
public static double getLength(Geometry linearGeom,
LinearLocation loc)
LinearLocation
on a linear Geometry.
loc - the LinearLocation index of the location
LinearLocationpublic 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 index
public double getLength(LinearLocation loc)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||