21 #include <geos/export.h> 27 #pragma warning(disable: 4251) // warning C4251: needs to have dll-interface to be used by clients of class 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;
59 static CoordsVectAutoPtr simplify(
60 const CoordsVect& nPts,
61 double distanceTolerance);
73 void setDistanceTolerance(
double nDistanceTolerance);
79 CoordsVectAutoPtr simplify();
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
Basic namespace for all GEOS functionalities.
Definition: Angle.h:25