00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef GEOS_OP_REPEATEDPOINTTESTER_H
00021 #define GEOS_OP_REPEATEDPOINTTESTER_H
00022
00023 #include <geos/export.h>
00024
00025 #include <geos/geom/Coordinate.h>
00026
00027
00028 namespace geos {
00029 namespace geom {
00030
00031 class CoordinateSequence;
00032 class Geometry;
00033 class Polygon;
00034 class MultiPolygon;
00035 class MultiLineString;
00036 class GeometryCollection;
00037 }
00038 }
00039
00040 namespace geos {
00041 namespace operation {
00042 namespace valid {
00043
00049 class GEOS_DLL RepeatedPointTester {
00050 public:
00051 RepeatedPointTester() {}
00052 geom::Coordinate& getCoordinate();
00053 bool hasRepeatedPoint(const geom::Geometry *g);
00054 bool hasRepeatedPoint(const geom::CoordinateSequence *coord);
00055 private:
00056 geom::Coordinate repeatedCoord;
00057 bool hasRepeatedPoint(const geom::Polygon *p);
00058 bool hasRepeatedPoint(const geom::GeometryCollection *gc);
00059 bool hasRepeatedPoint(const geom::MultiPolygon *gc);
00060 bool hasRepeatedPoint(const geom::MultiLineString *gc);
00061 };
00062
00063
00064 }
00065 }
00066 }
00067
00068 #endif // GEOS_OP_REPEATEDPOINTTESTER_H