26 #include <geos/export.h>
33 #pragma warning(disable: 4251) // warning C4251: needs to have dll-interface to be used by clients of class
39 class LineIntersector;
42 class CoordinateSequence;
46 class TaggedLineSegment;
47 class TaggedLineString;
48 class LineSegmentIndex;
67 LineSegmentIndex* outputIndex);
77 void setDistanceTolerance(
double d);
91 LineSegmentIndex* inputIndex;
94 LineSegmentIndex* outputIndex;
96 std::unique_ptr<algorithm::LineIntersector> li;
103 double distanceTolerance;
105 void simplifySection(std::size_t i, std::size_t j,
108 void simplifyRingEndpoint();
110 static std::size_t findFurthestPoint(
112 std::size_t i, std::size_t j,
113 double& maxDistance);
116 const std::pair<std::size_t, std::size_t>& sectionIndex,
120 const std::pair<std::size_t, std::size_t>& sectionIndex,
128 std::unique_ptr<TaggedLineSegment> flatten(
129 std::size_t start, std::size_t end);
139 static bool isInLineSection(
141 const std::pair<std::size_t, std::size_t>& sectionIndex,
160 distanceTolerance = d;