25 #ifndef GEOS_SIMPLIFY_TAGGEDLINESTRINGSIMPLIFIER_H
26 #define GEOS_SIMPLIFY_TAGGEDLINESTRINGSIMPLIFIER_H
28 #include <geos/export.h>
36 #pragma warning(disable: 4251) // warning C4251: needs to have dll-interface to be used by clients of class
42 class LineIntersector;
45 class CoordinateSequence;
49 class TaggedLineSegment;
50 class TaggedLineString;
51 class LineSegmentIndex;
71 LineSegmentIndex* outputIndex);
81 void setDistanceTolerance(
double d);
89 LineSegmentIndex* inputIndex;
92 LineSegmentIndex* outputIndex;
94 std::auto_ptr<algorithm::LineIntersector> li;
101 double distanceTolerance;
103 void simplifySection(std::size_t i, std::size_t j,
106 static std::size_t findFurthestPoint(
108 std::size_t i, std::size_t j,
109 double& maxDistance);
112 const std::vector<std::size_t>& sectionIndex,
116 const std::vector<std::size_t>& sectionIndex,
124 std::auto_ptr<TaggedLineSegment> flatten(
125 std::size_t start, std::size_t end);
135 static bool isInLineSection(
137 const std::vector<std::size_t>& sectionIndex,
157 distanceTolerance = d;
167 #endif // GEOS_SIMPLIFY_TAGGEDLINESTRINGSIMPLIFIER_H
Definition: LineSegment.h:58
Simplifies a TaggedLineString, preserving topology (in the sense that no new intersections are introd...
Definition: TaggedLineStringSimplifier.h:66
A geom::LineSegment which is tagged with its location in a geom::Geometry.
Definition: TaggedLineSegment.h:55
Contains and owns a list of TaggedLineSegments.
Definition: TaggedLineString.h:63
The internal representation of a list of coordinates inside a Geometry.
Definition: CoordinateSequence.h:60
void setDistanceTolerance(double d)
Sets the distance tolerance for the simplification.
Definition: TaggedLineStringSimplifier.h:155