21#include <geos/export.h>
22#include <geos/geom/CoordinateSequence.h>
28#pragma warning(disable: 4251)
53 static std::unique_ptr<geom::CoordinateSequence>
simplify(
55 double distanceTolerance,
56 bool preserveClosedEndpoint);
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);
The internal representation of a list of coordinates inside a Geometry.
Definition CoordinateSequence.h:56
Simplifies a linestring (sequence of points) using the standard Douglas-Peucker algorithm.
Definition DouglasPeuckerLineSimplifier.h:45
void setPreserveClosedEndpoint(bool preserve)
Sets whether the endpoint of a closed LineString should be preserved.
void setDistanceTolerance(double nDistanceTolerance)
Sets the distance tolerance for the simplification.
static std::unique_ptr< geom::CoordinateSequence > simplify(const geom::CoordinateSequence &nPts, double distanceTolerance, bool preserveClosedEndpoint)
Returns a newly allocated Coordinate vector, wrapped into an unique_ptr.
std::unique_ptr< geom::CoordinateSequence > simplify()
Returns a newly allocated Coordinate vector, wrapped into an unique_ptr.
Basic namespace for all GEOS functionalities.
Definition geos.h:39