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 void simplifyRingEndpoint();
110 static std::size_t findFurthestPoint(
112 std::size_t i, std::size_t j,
113 double& maxDistance);
116 const size_t excludeStart,
const size_t excludeEnd,
120 const size_t excludeStart,
const size_t excludeEnd,
128 std::unique_ptr<TaggedLineSegment> flatten(
129 std::size_t start, std::size_t end);
143 static bool isInLineSection(
145 const size_t excludeStart,
const size_t excludeEnd,
164 distanceTolerance = d;
The internal representation of a list of coordinates inside a Geometry.
Definition: CoordinateSequence.h:56
Definition: LineSegment.h:61
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:162
Contains and owns a list of TaggedLineSegments.
Definition: TaggedLineString.h:57
Basic namespace for all GEOS functionalities.
Definition: geos.h:39