25 #ifndef GEOS_SIMPLIFY_TAGGEDLINESTRING_H
26 #define GEOS_SIMPLIFY_TAGGEDLINESTRING_H
28 #include <geos/export.h>
34 #pragma warning(disable: 4251)
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);
The internal representation of a list of coordinates inside a Geometry.
Definition: CoordinateSequence.h:58
Definition: LineString.h:68
A geom::LineSegment which is tagged with its location in a geom::Geometry.
Definition: TaggedLineSegment.h:54
Contains and owns a list of TaggedLineSegments.
Definition: TaggedLineString.h:58
Basic namespace for all GEOS functionalities.
Definition: IndexedNestedRingTester.h:26