25 #ifndef GEOS_SIMPLIFY_TAGGEDLINESTRING_H
26 #define GEOS_SIMPLIFY_TAGGEDLINESTRING_H
28 #include <geos/export.h>
34 #pragma warning(disable: 4251) // warning C4251: needs to have dll-interface to be used by clients of class
41 class CoordinateSequence;
47 class TaggedLineSegment;
62 typedef std::vector<geom::Coordinate> CoordVect;
64 typedef std::unique_ptr<CoordVect> CoordVectPtr;
68 typedef std::unique_ptr<geom::CoordinateSequence> CoordSeqPtr;
71 std::size_t minimumSize = 2);
75 std::size_t getMinimumSize()
const;
79 const CoordSeq* getParentCoordinates()
const;
81 CoordSeqPtr getResultCoordinates()
const;
83 std::size_t getResultSize()
const;
89 std::vector<TaggedLineSegment*>& getSegments();
91 const std::vector<TaggedLineSegment*>& getSegments()
const;
93 void addToResult(std::unique_ptr<TaggedLineSegment> seg);
95 std::unique_ptr<geom::Geometry> asLineString()
const;
97 std::unique_ptr<geom::Geometry> asLinearRing()
const;
104 std::vector<TaggedLineSegment*> segs;
107 std::vector<TaggedLineSegment*> resultSegs;
109 std::size_t minimumSize;
113 static CoordVectPtr extractCoordinates(
114 const std::vector<TaggedLineSegment*>& segs);
129 #endif // GEOS_SIMPLIFY_TAGGEDLINESTRING_H