26#include <geos/export.h>
33#pragma warning(disable: 4251)
42class CoordinateSequence;
46class TaggedLineSegment;
47class TaggedLineString;
48class 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;
The internal representation of a list of coordinates inside a Geometry.
Definition: CoordinateSequence.h:44
Definition: LineSegment.h:60
A geom::LineSegment which is tagged with its location in a geom::Geometry.
Definition: TaggedLineSegment.h:53
Simplifies a TaggedLineString, preserving topology (in the sense that no new intersections are introd...
Definition: TaggedLineStringSimplifier.h:62
void simplify(TaggedLineString *line)
void setDistanceTolerance(double d)
Sets the distance tolerance for the simplification.
Definition: TaggedLineStringSimplifier.h:156
Contains and owns a list of TaggedLineSegments.
Definition: TaggedLineString.h:57
Basic namespace for all GEOS functionalities.
Definition: geos.h:39