21 #ifndef GEOS_LINEARREF_LENGTHLOCATIONMAP_H
22 #define GEOS_LINEARREF_LENGTHLOCATIONMAP_H
24 #include <geos/geom/Coordinate.h>
25 #include <geos/geom/Geometry.h>
26 #include <geos/linearref/LinearLocation.h>
37 class LengthLocationMap {
41 const geom::Geometry* linearGeom;
43 LinearLocation getLocationForward(
double length)
const;
45 LinearLocation resolveHigher(
const LinearLocation& loc)
const;
63 getLocation(
const geom::Geometry* linearGeom,
double length)
65 LengthLocationMap locater(linearGeom);
66 return locater.getLocation(length);
81 getLocation(
const geom::Geometry* linearGeom,
double length,
bool resolveLower)
83 LengthLocationMap locater(linearGeom);
84 return locater.getLocation(length, resolveLower);
95 static double getLength(
const geom::Geometry* linearGeom,
const LinearLocation& loc);
97 LengthLocationMap(
const geom::Geometry* linearGeom);