21 #include <geos/export.h> 22 #include <geos/geom/CoordinateSequence.h> 28 #pragma warning(disable: 4251) // warning C4251: needs to have dll-interface to be used by clients of class 53 static std::unique_ptr<geom::CoordinateSequence> simplify(
55 double distanceTolerance,
56 bool preserveClosedEndpoint);
68 void setDistanceTolerance(
double nDistanceTolerance);
75 void setPreserveClosedEndpoint(
bool preserve);
81 std::unique_ptr<geom::CoordinateSequence> simplify();
86 std::vector<bool> usePt;
87 double distanceTolerance;
88 bool preserveEndpoint;
90 void simplifySection(std::size_t i, std::size_t j);
Simplifies a linestring (sequence of points) using the standard Douglas-Peucker algorithm.
Definition: DouglasPeuckerLineSimplifier.h:45
Basic namespace for all GEOS functionalities.
Definition: Angle.h:25
The internal representation of a list of coordinates inside a Geometry.
Definition: CoordinateSequence.h:56