20 #ifndef GEOS_LINEARREF_LENGTHINDEXOFPOINT_H
21 #define GEOS_LINEARREF_LENGTHINDEXOFPOINT_H
25 #include <geos/geom/Coordinate.h>
26 #include <geos/geom/Geometry.h>
27 #include <geos/geom/LineSegment.h>
28 #include <geos/linearref/LinearLocation.h>
43 class LengthIndexOfPoint {
46 const geom::Geometry* linearGeom;
48 double indexOfFromStart(
const geom::Coordinate& inputPt,
const double minIndex)
const;
50 double segmentNearestMeasure(
const geom::LineSegment* seg,
51 const geom::Coordinate& inputPt,
52 double segmentStartMeasure)
const;
54 static double indexOf(
const geom::Geometry* linearGeom,
const geom::Coordinate& inputPt);
56 static double indexOfAfter(
const geom::Geometry* linearGeom,
const geom::Coordinate& inputPt,
double minIndex);
58 LengthIndexOfPoint(
const geom::Geometry* linearGeom);
66 double indexOf(
const geom::Coordinate& inputPt)
const;
83 double indexOfAfter(
const geom::Coordinate& inputPt,
double minIndex)
const;