21 #ifndef GEOS_LINEARREF_LOCATIONINDEXOFPOINT_H
22 #define GEOS_LINEARREF_LOCATIONINDEXOFPOINT_H
24 #include <geos/geom/Coordinate.h>
25 #include <geos/geom/Geometry.h>
26 #include <geos/linearref/LinearLocation.h>
40 class LocationIndexOfPoint
44 const geom::Geometry *linearGeom;
46 LinearLocation indexOfFromStart(
const geom::Coordinate& inputPt,
const LinearLocation* minIndex)
const;
49 static LinearLocation indexOf(
const geom::Geometry *linearGeom,
const geom::Coordinate& inputPt);
51 static LinearLocation indexOfAfter(
const geom::Geometry *linearGeom,
const geom::Coordinate& inputPt,
const LinearLocation* minIndex);
53 LocationIndexOfPoint(
const geom::Geometry *linearGeom);
61 LinearLocation indexOf(
const geom::Coordinate& inputPt)
const;
77 LinearLocation indexOfAfter(
const geom::Coordinate& inputPt,
const LinearLocation* minIndex)
const;