20 #ifndef GEOS_LINEARREF_EXTRACTLINEBYLOCATION_H
21 #define GEOS_LINEARREF_EXTRACTLINEBYLOCATION_H
23 #include <geos/geom/Coordinate.h>
24 #include <geos/geom/Geometry.h>
25 #include <geos/linearref/LinearLocation.h>
34 class ExtractLineByLocation {
37 const geom::Geometry* line;
38 std::unique_ptr<geom::Geometry> reverse(
const geom::Geometry* linear);
47 std::unique_ptr<geom::LineString> computeLine(
const LinearLocation& start,
const LinearLocation& end);
56 std::unique_ptr<geom::Geometry> computeLinear(
const LinearLocation& start,
const LinearLocation& end);
71 static std::unique_ptr<geom::Geometry>
extract(
const geom::Geometry* line,
const LinearLocation& start,
const LinearLocation& end);
73 ExtractLineByLocation(
const geom::Geometry* line);
84 std::unique_ptr<geom::Geometry>
extract(
const LinearLocation& start,
const LinearLocation& end);