#include <LengthLocationMap.h>
Public Member Functions | |
| LengthLocationMap (const geom::Geometry *linearGeom) | |
| LinearLocation | getLocation (double length, bool resolveLower) const |
| Compute the LinearLocation corresponding to a length. | |
| LinearLocation | getLocation (double length) const |
| Compute the LinearLocation corresponding to a length. | |
| double | getLength (const LinearLocation &loc) const |
Static Public Member Functions | |
| static LinearLocation | getLocation (const geom::Geometry *linearGeom, double length) |
| Computes the LinearLocation for a given length along a linear Geometry. | |
| static LinearLocation | getLocation (const geom::Geometry *linearGeom, double length, bool resolveLower) |
| Computes the LinearLocation for a given length along a linear Geometry. | |
| static double | getLength (const geom::Geometry *linearGeom, const LinearLocation &loc) |
| static double geos::linearref::LengthLocationMap::getLength | ( | const geom::Geometry * | linearGeom, | |
| const LinearLocation & | loc | |||
| ) | [static] |
Computes the length for a given LinearLocation on a linear Geometry.
| line | the linear geometry to use | |
| loc | the LinearLocation index of the location |
| 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.
| length | the length index |
| 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.
| length | the length index |
| static LinearLocation geos::linearref::LengthLocationMap::getLocation | ( | const geom::Geometry * | linearGeom, | |
| double | length, | |||
| bool | resolveLower | |||
| ) | [inline, static] |
Computes the LinearLocation for a given length along a linear Geometry.
| line | the linear geometry to use | |
| length | the length index of the location | |
| resolveLower | if true lengths are resolved to the lowest possible index |
| static LinearLocation geos::linearref::LengthLocationMap::getLocation | ( | const geom::Geometry * | linearGeom, | |
| double | length | |||
| ) | [inline, static] |
Computes the LinearLocation for a given length along a linear Geometry.
| line | the linear geometry to use | |
| length | the length index of the location |
1.4.7