24 #ifndef GEOS_SIMPLIFY_TAGGEDLINESTRINGSIMPLIFIER_H
25 #define GEOS_SIMPLIFY_TAGGEDLINESTRINGSIMPLIFIER_H
27 #include <geos/export.h>
34 #pragma warning(disable: 4251)
40 class LineIntersector;
43 class CoordinateSequence;
47 class TaggedLineSegment;
48 class TaggedLineString;
49 class LineSegmentIndex;
68 LineSegmentIndex* outputIndex);
78 void setDistanceTolerance(
double d);
92 LineSegmentIndex* inputIndex;
95 LineSegmentIndex* outputIndex;
97 std::unique_ptr<algorithm::LineIntersector> li;
104 double distanceTolerance;
106 void simplifySection(std::size_t i, std::size_t j,
109 static std::size_t findFurthestPoint(
111 std::size_t i, std::size_t j,
112 double& maxDistance);
115 const std::pair<std::size_t, std::size_t>& sectionIndex,
119 const std::pair<std::size_t, std::size_t>& sectionIndex,
127 std::unique_ptr<TaggedLineSegment> flatten(
128 std::size_t start, std::size_t end);
138 static bool isInLineSection(
140 const std::pair<std::size_t, std::size_t>& sectionIndex,
159 distanceTolerance = d;
The internal representation of a list of coordinates inside a Geometry.
Definition: CoordinateSequence.h:58
Definition: LineSegment.h:59
A geom::LineSegment which is tagged with its location in a geom::Geometry.
Definition: TaggedLineSegment.h:54
Simplifies a TaggedLineString, preserving topology (in the sense that no new intersections are introd...
Definition: TaggedLineStringSimplifier.h:63
void simplify(TaggedLineString *line)
void setDistanceTolerance(double d)
Sets the distance tolerance for the simplification.
Definition: TaggedLineStringSimplifier.h:157
Contains and owns a list of TaggedLineSegments.
Definition: TaggedLineString.h:58
Basic namespace for all GEOS functionalities.
Definition: IndexedNestedRingTester.h:26