19 #ifndef GEOS_SIMPLIFY_DOUBGLASPEUCKERLINESIMPLIFIER_H
20 #define GEOS_SIMPLIFY_DOUBGLASPEUCKERLINESIMPLIFIER_H
22 #include <geos/export.h>
29 #pragma warning(disable: 4251) // warning C4251: needs to have dll-interface to be used by clients of class
52 typedef std::vector<short int> BoolVect;
53 typedef std::auto_ptr<BoolVect> BoolVectAutoPtr;
55 typedef std::vector<geom::Coordinate> CoordsVect;
56 typedef std::auto_ptr<CoordsVect> CoordsVectAutoPtr;
63 static CoordsVectAutoPtr simplify(
64 const CoordsVect& nPts,
65 double distanceTolerance);
77 void setDistanceTolerance(
double nDistanceTolerance);
83 CoordsVectAutoPtr simplify();
87 const CoordsVect& pts;
88 BoolVectAutoPtr usePt;
89 double distanceTolerance;
91 void simplifySection(std::size_t i, std::size_t j);
105 #endif // GEOS_SIMPLIFY_DOUBGLASPEUCKERLINESIMPLIFIER_H
Simplifies a linestring (sequence of points) using the standard Douglas-Peucker algorithm.
Definition: DouglasPeuckerLineSimplifier.h:48
Basic namespace for all GEOS functionalities.
Definition: IndexedNestedRingTester.h:25