23#include <geos/export.h>
24#include <geos/geom/Coordinate.h>
25#include <geos/geom/Geometry.h>
26#include <geos/linearref/LinearLocation.h>
48 double positiveIndex(
double index)
const;
107 std::unique_ptr<geom::Geometry>
extractLine(
double startIndex,
double endIndex)
const;
Coordinate is the lightweight class used to store coordinates.
Definition Coordinate.h:217
Basic implementation of Geometry, constructed and destructed by GeometryFactory.
Definition Geometry.h:197
Supports linear referencing along a linear geom::Geometry using the length along the line as the inde...
Definition LengthIndexedLine.h:43
double indexOfAfter(const geom::Coordinate &pt, double minIndex) const
Finds the index for a point on the line which is greater than the given index.
geom::Coordinate extractPoint(double index, double offsetDistance) const
Computes the Coordinate for the point on the line at the given index, offset by the given distance.
double project(const geom::Coordinate &pt) const
Computes the index for the closest point on the line to the given point.
LengthIndexedLine(const geom::Geometry *linearGeom)
Constructs an object which allows a linear Geometry to be linearly referenced using length as an inde...
bool isValidIndex(double index) const
Tests whether an index is in the valid index range for the line.
double * indicesOf(const geom::Geometry *subLine) const
Computes the indices for a subline of the line.
double getEndIndex() const
Returns the index of the end of the line.
double getStartIndex() const
Returns the index of the start of the line.
std::unique_ptr< geom::Geometry > extractLine(double startIndex, double endIndex) const
Computes the LineString for the interval on the line between the given indices.
double indexOf(const geom::Coordinate &pt) const
Computes the minimum index for a point on the line.
geom::Coordinate extractPoint(double index) const
Computes the Coordinate for the point on the line at the given index.
double clampIndex(double index) const
Computes a valid index for this line by clamping the given index to the valid range of index values.
Represents a location along a LineString or MultiLineString.
Definition LinearLocation.h:43
Basic namespace for all GEOS functionalities.
Definition geos.h:39