Computes the LinearLocation for a given length along a linear Geometry.
More...
#include <LengthLocationMap.h>
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.
Definition at line 38 of file LengthLocationMap.h.
geos::linearref::LengthLocationMap::LengthLocationMap |
( |
const geom::Geometry * |
linearGeom | ) |
|
double geos::linearref::LengthLocationMap::getLength |
( |
const LinearLocation & |
loc | ) |
const |
static LinearLocation geos::linearref::LengthLocationMap::getLocation |
( |
const geom::Geometry * |
linearGeom, |
|
|
double |
length, |
|
|
bool |
resolveLower |
|
) |
| |
|
inlinestatic |
LinearLocation geos::linearref::LengthLocationMap::getLocation |
( |
double |
length, |
|
|
bool |
resolveLower |
|
) |
| const |
Compute the 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, depending on the value of resolveLower
.
- Parameters
-
length | the length index |
resolveLower | if true lengths are resolved to the lowest possible index |
- Returns
- the corresponding LinearLocation
LinearLocation geos::linearref::LengthLocationMap::getLocation |
( |
double |
length | ) |
const |
Compute the 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.
- Parameters
-
- Returns
- the corresponding LinearLocation
LinearLocation geos::linearref::LengthLocationMap::getLocationForward |
( |
double |
length | ) |
const |
|
private |
The documentation for this class was generated from the following file: