00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 #ifndef GEOS_PRECISION_MINIMUMCLEARANCE_H
00020 #define GEOS_PRECISION_MINIMUMCLEARANCE_H
00021
00022 #include <geos/geom/Geometry.h>
00023 #include <geos/geom/LineString.h>
00024 #include <geos/geom/CoordinateSequence.h>
00025
00026 namespace geos {
00027 namespace precision {
00028 class GEOS_DLL MinimumClearance {
00029 private:
00030 const geom::Geometry* inputGeom;
00031 double minClearance;
00032 std::auto_ptr<geom::CoordinateSequence> minClearancePts;
00033
00034 void compute();
00035 public:
00036 MinimumClearance(const geom::Geometry* g);
00037
00044 double getDistance();
00045
00053 std::auto_ptr<geom::LineString> getLine();
00054 };
00055 }
00056 }
00057
00058 #endif
00059
00060