00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 #ifndef GEOS_SIMPLIFY_DOUBGLASPEUCKERSIMPLIFIER_H
00020 #define GEOS_SIMPLIFY_DOUBGLASPEUCKERSIMPLIFIER_H
00021
00022 #include <geos/export.h>
00023 #include <memory>
00024
00025
00026 namespace geos {
00027 namespace geom {
00028 class Geometry;
00029 }
00030 }
00031
00032 namespace geos {
00033 namespace simplify {
00034
00035
00050 class GEOS_DLL DouglasPeuckerSimplifier {
00051
00052 public:
00053
00054 static std::auto_ptr<geom::Geometry> simplify(
00055 const geom::Geometry* geom,
00056 double tolerance);
00057
00058 DouglasPeuckerSimplifier(const geom::Geometry* geom);
00059
00070 void setDistanceTolerance(double tolerance);
00071
00072 std::auto_ptr<geom::Geometry> getResultGeometry();
00073
00074
00075 private:
00076
00077 const geom::Geometry* inputGeom;
00078
00079 double distanceTolerance;
00080 };
00081
00082
00083 }
00084 }
00085
00086 #endif // GEOS_SIMPLIFY_DOUBGLASPEUCKERSIMPLIFIER_H