20 #ifndef GEOS_SIMPLIFY_DOUBGLASPEUCKERLINESIMPLIFIER_H
21 #define GEOS_SIMPLIFY_DOUBGLASPEUCKERLINESIMPLIFIER_H
23 #include <geos/export.h>
30 #pragma warning(disable: 4251) // warning C4251: needs to have dll-interface to be used by clients of class
53 typedef std::vector<short int> BoolVect;
54 typedef std::auto_ptr<BoolVect> BoolVectAutoPtr;
56 typedef std::vector<geom::Coordinate> CoordsVect;
57 typedef std::auto_ptr<CoordsVect> CoordsVectAutoPtr;
64 static CoordsVectAutoPtr simplify(
65 const CoordsVect& nPts,
66 double distanceTolerance);
78 void setDistanceTolerance(
double nDistanceTolerance);
84 CoordsVectAutoPtr simplify();
88 const CoordsVect& pts;
89 BoolVectAutoPtr usePt;
90 double distanceTolerance;
92 void simplifySection(std::size_t i, std::size_t j);
106 #endif // GEOS_SIMPLIFY_DOUBGLASPEUCKERLINESIMPLIFIER_H