GEOS
3.9.1dev
|
Extracts the subline of a linear Geometry between two LinearLocations 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. More... | |
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 LinearLocations on the line. More... | |
Private Member Functions | |
std::unique_ptr< geom::Geometry > | reverse (const geom::Geometry *linear) |
std::unique_ptr< geom::LineString > | computeLine (const LinearLocation &start, const LinearLocation &end) |
std::unique_ptr< geom::Geometry > | computeLinear (const LinearLocation &start, const LinearLocation &end) |
Private Attributes | |
const geom::Geometry * | line |
Extracts the subline of a linear Geometry between two LinearLocations on the line.
Definition at line 34 of file ExtractLineByLocation.h.
geos::linearref::ExtractLineByLocation::ExtractLineByLocation | ( | const geom::Geometry * | line | ) |
|
private |
Assumes input is valid (e.g. start <= end)
start | |
end |
|
private |
Assumes input is valid (e.g. start <= end)
start | |
end |
|
static |
Computes the subline of a LineString between two LinearLocations 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 |
Referenced by geos::linearref::LocationIndexedLine::extractLine().
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 |
|
private |
|
private |
Definition at line 37 of file ExtractLineByLocation.h.