20 #ifndef GEOS_LINEARREF_LINEARGEOMETRYBUILDER_H
21 #define GEOS_LINEARREF_LINEARGEOMETRYBUILDER_H
23 #include <geos/geom/Coordinate.h>
24 #include <geos/geom/CoordinateList.h>
25 #include <geos/geom/Geometry.h>
26 #include <geos/geom/GeometryFactory.h>
27 #include <geos/linearref/LinearLocation.h>
42 class LinearGeometryBuilder
45 const geom::GeometryFactory* geomFact;
47 typedef std::vector<geom::Geometry *> GeomPtrVect;
52 bool ignoreInvalidLines;
54 geom::CoordinateSequence* coordList;
56 geom::Coordinate lastPt;
59 LinearGeometryBuilder(
const geom::GeometryFactory* geomFact);
61 ~LinearGeometryBuilder();
86 void add(
const geom::Coordinate& pt);
93 void add(
const geom::Coordinate& pt,
bool allowRepeatedPoints);
101 geom::Geometry *getGeometry();