25 #ifndef GEOS_SIMPLIFY_TAGGEDLINESTRINGSIMPLIFIER_H
26 #define GEOS_SIMPLIFY_TAGGEDLINESTRINGSIMPLIFIER_H
28 #include <geos/export.h>
36 #pragma warning(disable: 4251) // warning C4251: needs to have dll-interface to be used by clients of class
42 class LineIntersector;
45 class CoordinateSequence;
49 class TaggedLineSegment;
50 class TaggedLineString;
51 class LineSegmentIndex;
71 LineSegmentIndex* outputIndex);
81 void setDistanceTolerance(
double d);
89 LineSegmentIndex* inputIndex;
92 LineSegmentIndex* outputIndex;
94 std::auto_ptr<algorithm::LineIntersector> li;
101 double distanceTolerance;
103 void simplifySection(std::size_t i, std::size_t j,
106 static std::size_t findFurthestPoint(
108 std::size_t i, std::size_t j,
109 double& maxDistance);
112 const std::vector<std::size_t>& sectionIndex,
116 const std::vector<std::size_t>& sectionIndex,
124 std::auto_ptr<TaggedLineSegment> flatten(
125 std::size_t start, std::size_t end);
135 static bool isInLineSection(
137 const std::vector<std::size_t>& sectionIndex,
157 distanceTolerance = d;
167 #endif // GEOS_SIMPLIFY_TAGGEDLINESTRINGSIMPLIFIER_H