public class LengthLocationMap extends 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
|
| Modifier and Type | Method and Description |
|---|---|
static double |
getLength(Geometry
Computes the length for a given
LinearLocation on a linear
Geometry.
|
double |
getLength(LinearLocation
|
LinearLocation |
getLocation(double length)
Compute the
LinearLocation corresponding to a length.
|
LinearLocation |
getLocation(double length, boolean resolveLower)
Compute the
LinearLocation corresponding to a length.
|
static LinearLocation |
getLocation(Geometry
Computes the
LinearLocation for a given length along a linear
Geometry.
|
static LinearLocation |
getLocation(Geometry
Computes the
LinearLocation for a given length along a linear
Geometry, with control over how the location is resolved at component endpoints.
|
public LengthLocationMap(GeometrylinearGeom)
public static LinearLocationgetLocation(Geometry linearGeom, double length)
LinearLocation for a given length along a linear
Geometry.
linearGeom - the linear geometry to use
length - the length index of the location
LinearLocation for the length
public static LinearLocationgetLocation(Geometry linearGeom, double length, boolean resolveLower)
LinearLocation for a given length along a linear
Geometry, with control over how the location is resolved at component endpoints.
linearGeom - the linear geometry to use
length - the length index of the location
resolveLower - if true lengths are resolved to the lowest possible index
LinearLocation for the length
public static double getLength(GeometrylinearGeom, LinearLocation loc)
LinearLocation on a linear
Geometry.
linearGeom - the linear geometry to use
loc - the
LinearLocation index of the location
LinearLocation
public LinearLocationgetLocation(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. Ambiguous indexes are resolved to the lowest possible location value.
length - the length index
public LinearLocationgetLocation(double length, boolean resolveLower)
LinearLocation corresponding to a length. Negative lengths are measured in reverse from end of the linear geometry. Out-of-range values are clamped. Ambiguous indexes are resolved to the lowest or highest possible location value, depending on the value of
resolveLower
length - the length index
public double getLength(LinearLocationloc)