GEOS 3.14.0dev
|
Extracts the subline of a linear Geometry between two LinearLocation
s on the line.
More...
#include <ExtractLineByLocation.h>
Public Member Functions | |
ExtractLineByLocation (const geom::Geometry *line) | |
std::unique_ptr< geom::Geometry > | extract (const LinearLocation &start, const LinearLocation &end) |
Extracts a subline of the input. | |
Static Public Member Functions | |
static std::unique_ptr< geom::Geometry > | extract (const geom::Geometry *line, const LinearLocation &start, const LinearLocation &end) |
Computes the subline of a LineString between two LinearLocation s on the line. | |
Extracts the subline of a linear Geometry between two LinearLocation
s on the line.
|
static |
Computes the subline of a LineString between two LinearLocation
s on the line.
If the start location is after the end location, the computed geometry is reversed.
line | the line to use as the baseline |
start | the start location |
end | the end location |
std::unique_ptr< geom::Geometry > geos::linearref::ExtractLineByLocation::extract | ( | const LinearLocation & | start, |
const LinearLocation & | end | ||
) |
Extracts a subline of the input.
If end < start
the linear geometry computed will be reversed.
start | the start location |
end | the end location |