24 #ifndef GEOS_SIMPLIFY_TAGGEDLINESTRINGSIMPLIFIER_H
25 #define GEOS_SIMPLIFY_TAGGEDLINESTRINGSIMPLIFIER_H
27 #include <geos/export.h>
35 #pragma warning(disable: 4251) // warning C4251: needs to have dll-interface to be used by clients of class
41 class LineIntersector;
44 class CoordinateSequence;
48 class TaggedLineSegment;
49 class TaggedLineString;
50 class LineSegmentIndex;
70 LineSegmentIndex* outputIndex);
80 void setDistanceTolerance(
double d);
94 LineSegmentIndex* inputIndex;
97 LineSegmentIndex* outputIndex;
99 std::auto_ptr<algorithm::LineIntersector> li;
106 double distanceTolerance;
108 void simplifySection(std::size_t i, std::size_t j,
111 static std::size_t findFurthestPoint(
113 std::size_t i, std::size_t j,
114 double& maxDistance);
117 const std::vector<std::size_t>& sectionIndex,
121 const std::vector<std::size_t>& sectionIndex,
129 std::auto_ptr<TaggedLineSegment> flatten(
130 std::size_t start, std::size_t end);
140 static bool isInLineSection(
142 const std::vector<std::size_t>& sectionIndex,
162 distanceTolerance = d;
172 #endif // GEOS_SIMPLIFY_TAGGEDLINESTRINGSIMPLIFIER_H
Definition: LineSegment.h:57
Simplifies a TaggedLineString, preserving topology (in the sense that no new intersections are introd...
Definition: TaggedLineStringSimplifier.h:65
A geom::LineSegment which is tagged with its location in a geom::Geometry.
Definition: TaggedLineSegment.h:54
Basic namespace for all GEOS functionalities.
Definition: IndexedNestedRingTester.h:25
Contains and owns a list of TaggedLineSegments.
Definition: TaggedLineString.h:62
The internal representation of a list of coordinates inside a Geometry.
Definition: CoordinateSequence.h:59
void setDistanceTolerance(double d)
Sets the distance tolerance for the simplification.
Definition: TaggedLineStringSimplifier.h:160