19 #ifndef GEOS_LINEARREF_LOCATIONINDEXEDLINE_H
20 #define GEOS_LINEARREF_LOCATIONINDEXEDLINE_H
22 #include <geos/export.h>
23 #include <geos/geom/Coordinate.h>
24 #include <geos/geom/Geometry.h>
25 #include <geos/geom/Lineal.h>
26 #include <geos/linearref/LinearLocation.h>
27 #include <geos/linearref/LocationIndexOfPoint.h>
28 #include <geos/linearref/LocationIndexOfLine.h>
29 #include <geos/util/IllegalArgumentException.h>
45 void checkGeometryType()
47 if ( ! dynamic_cast<const geom::Lineal*>(linearGeom) )
61 : linearGeom(linearGeom)
104 double offsetDistance)
const
107 index.
getSegment(linearGeom)->pointAlongOffset(
149 return LocationIndexOfPoint::indexOf(linearGeom, pt);
179 return LocationIndexOfPoint::indexOfAfter(linearGeom, pt, &minIndex);
212 return LocationIndexOfPoint::indexOf(linearGeom, pt);
246 return index.
isValid(linearGeom);
260 loc.
clamp(linearGeom);