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 static std::size_t findFurthestPoint(
110 std::size_t i, std::size_t j,
111 double& maxDistance);
114 const std::pair<std::size_t, std::size_t>& sectionIndex,
118 const std::pair<std::size_t, std::size_t>& sectionIndex,
126 std::unique_ptr<TaggedLineSegment> flatten(
127 std::size_t start, std::size_t end);
137 static bool isInLineSection(
139 const std::pair<std::size_t, std::size_t>& sectionIndex,
158 distanceTolerance = d;
Definition: LineSegment.h:60
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:44
void setDistanceTolerance(double d)
Sets the distance tolerance for the simplification.
Definition: TaggedLineStringSimplifier.h:156