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);
87 LineSegmentIndex* inputIndex;
90 LineSegmentIndex* outputIndex;
92 std::auto_ptr<algorithm::LineIntersector> li;
99 double distanceTolerance;
101 void simplifySection(std::size_t i, std::size_t j,
104 static std::size_t findFurthestPoint(
106 std::size_t i, std::size_t j,
107 double& maxDistance);
110 const std::vector<std::size_t>& sectionIndex,
114 const std::vector<std::size_t>& sectionIndex,
122 std::auto_ptr<TaggedLineSegment> flatten(
123 std::size_t start, std::size_t end);
133 static bool isInLineSection(
135 const std::vector<std::size_t>& sectionIndex,
155 distanceTolerance = d;
165 #endif // GEOS_SIMPLIFY_TAGGEDLINESTRINGSIMPLIFIER_H