00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024 #ifndef GEOS_SIMPLIFY_TOPOLOGYPRESERVINGSIMPLIFIER_H
00025 #define GEOS_SIMPLIFY_TOPOLOGYPRESERVINGSIMPLIFIER_H
00026
00027 #include <geos/export.h>
00028 #include <geos/geom/Geometry.h>
00029 #include <geos/simplify/TaggedLinesSimplifier.h>
00030 #include <memory>
00031 #include <map>
00032
00033 #ifdef _MSC_VER
00034 #pragma warning(push)
00035 #pragma warning(disable: 4251) // warning C4251: needs to have dll-interface to be used by clients of class
00036 #endif
00037
00038 namespace geos {
00039 namespace simplify {
00040
00059 class GEOS_DLL TopologyPreservingSimplifier
00060 {
00061
00062 public:
00063
00064 static std::auto_ptr<geom::Geometry> simplify(
00065 const geom::Geometry* geom,
00066 double tolerance);
00067
00068 TopologyPreservingSimplifier(const geom::Geometry* geom);
00069
00080 void setDistanceTolerance(double tolerance);
00081
00082 std::auto_ptr<geom::Geometry> getResultGeometry();
00083
00084 private:
00085
00086 const geom::Geometry* inputGeom;
00087
00088 std::auto_ptr<TaggedLinesSimplifier> lineSimplifier;
00089
00090 };
00091
00092 }
00093 }
00094
00095 #ifdef _MSC_VER
00096 #pragma warning(pop)
00097 #endif
00098
00099 #endif // GEOS_SIMPLIFY_TOPOLOGYPRESERVINGSIMPLIFIER_H
00100
00101
00102
00103
00104
00105
00106
00107
00108
00109