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>
45 class LengthIndexOfPoint
49 const geom::Geometry *linearGeom;
51 double indexOfFromStart(
const geom::Coordinate& inputPt,
const double minIndex)
const;
53 double segmentNearestMeasure(
const geom::LineSegment *seg,
54 const geom::Coordinate& inputPt,
55 double segmentStartMeasure)
const;
57 static double indexOf(
const geom::Geometry *linearGeom,
const geom::Coordinate& inputPt);
59 static double indexOfAfter(
const geom::Geometry *linearGeom,
const geom::Coordinate& inputPt,
double minIndex);
61 LengthIndexOfPoint(
const geom::Geometry *linearGeom);
69 double indexOf(
const geom::Coordinate& inputPt)
const;
86 double indexOfAfter(
const geom::Coordinate& inputPt,
double minIndex)
const;