21#include <geos/export.h>
27#pragma warning(disable: 4251)
48 typedef std::vector<short int> BoolVect;
49 typedef std::unique_ptr<BoolVect> BoolVectAutoPtr;
51 typedef std::vector<geom::Coordinate> CoordsVect;
52 typedef std::unique_ptr<CoordsVect> CoordsVectAutoPtr;
60 const CoordsVect& nPts,
61 double distanceTolerance);
83 const CoordsVect& pts;
84 BoolVectAutoPtr usePt;
85 double distanceTolerance;
87 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:44
static CoordsVectAutoPtr simplify(const CoordsVect &nPts, double distanceTolerance)
Returns a newly allocated Coordinate vector, wrapped into an unique_ptr.
void setDistanceTolerance(double nDistanceTolerance)
Sets the distance tolerance for the simplification.
CoordsVectAutoPtr simplify()
Returns a newly allocated Coordinate vector, wrapped into an unique_ptr.
Basic namespace for all GEOS functionalities.
Definition: geos.h:39