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;
Definition: LineSegment.h:61
Simplifies a TaggedLineString, preserving topology (in the sense that no new intersections are introd...
Definition: TaggedLineStringSimplifier.h:62
A geom::LineSegment which is tagged with its location in a geom::Geometry.
Definition: TaggedLineSegment.h:53
Basic namespace for all GEOS functionalities.
Definition: Angle.h:25
Contains and owns a list of TaggedLineSegments.
Definition: TaggedLineString.h:57
The internal representation of a list of coordinates inside a Geometry.
Definition: CoordinateSequence.h:56
void setDistanceTolerance(double d)
Sets the distance tolerance for the simplification.
Definition: TaggedLineStringSimplifier.h:158