25 #ifndef GEOS_SIMPLIFY_TAGGEDLINESTRINGSIMPLIFIER_H
26 #define GEOS_SIMPLIFY_TAGGEDLINESTRINGSIMPLIFIER_H
28 #include <geos/export.h>
35 #pragma warning(disable: 4251) // warning C4251: needs to have dll-interface to be used by clients of class
41 class LineIntersector;
44 class CoordinateSequence;
48 class TaggedLineSegment;
49 class TaggedLineString;
50 class LineSegmentIndex;
69 LineSegmentIndex* outputIndex);
79 void setDistanceTolerance(
double d);
93 LineSegmentIndex* inputIndex;
96 LineSegmentIndex* outputIndex;
98 std::auto_ptr<algorithm::LineIntersector> li;
105 double distanceTolerance;
107 void simplifySection(std::size_t i, std::size_t j,
110 static std::size_t findFurthestPoint(
112 std::size_t i, std::size_t j,
113 double& maxDistance);
116 const std::vector<std::size_t>& sectionIndex,
120 const std::vector<std::size_t>& sectionIndex,
128 std::auto_ptr<TaggedLineSegment> flatten(
129 std::size_t start, std::size_t end);
139 static bool isInLineSection(
141 const std::vector<std::size_t>& sectionIndex,
161 distanceTolerance = d;
171 #endif // GEOS_SIMPLIFY_TAGGEDLINESTRINGSIMPLIFIER_H