GEOS 3.3.4

- Main Page
- Related Pages
- Namespaces
- Classes
- Files

- File List

RepeatedPointTester.h
1 /**********************************************************************
2 * $Id: RepeatedPointTester.h 2572 2009-06-08 22:10:55Z strk $
3 *
4 * GEOS - Geometry Engine Open Source
5 * http://geos.refractions.net
6 *
7 * Copyright (C) 2005-2006 Refractions Research Inc.
8 * Copyright (C) 2001-2002 Vivid Solutions Inc.
9 *
10 * This is free software; you can redistribute and/or modify it under
11 * the terms of the GNU Lesser General Public Licence as published
12 * by the Free Software Foundation.
13 * See the COPYING file for more information.
14 *
15 **********************************************************************
16 *
17 * Last port: operation/valid/RepeatedPointTester.java rev. 1.8 (JTS-1.10)
18 *
19 **********************************************************************/
20
21 #ifndef GEOS_OP_REPEATEDPOINTTESTER_H
22 #define GEOS_OP_REPEATEDPOINTTESTER_H
23
24 #include <geos/export.h>
25
26 #include <geos/geom/Coordinate.h> // for composition
27
28 // Forward declarations
29 namespace geos {
30 namespace geom {
31 //class Coordinate;
32 class CoordinateSequence;
33 class Geometry;
34 class Polygon;
35 class MultiPolygon;
36 class MultiLineString;
37 class GeometryCollection;
38 }
39 }
40
41 namespace geos {
42 namespace operation { // geos::operation
43 namespace valid { // geos::operation::valid
44
50 class GEOS_DLL RepeatedPointTester {
51 public:
52 RepeatedPointTester() {};
53 geom::Coordinate& getCoordinate();
54 bool hasRepeatedPoint(const geom::Geometry *g);
55 bool hasRepeatedPoint(const geom::CoordinateSequence *coord);
56 private:
57 geom::Coordinate repeatedCoord;
58 bool hasRepeatedPoint(const geom::Polygon *p);
59 bool hasRepeatedPoint(const geom::GeometryCollection *gc);
60 bool hasRepeatedPoint(const geom::MultiPolygon *gc);
61 bool hasRepeatedPoint(const geom::MultiLineString *gc);
62 };
63
64
65 } // namespace geos.operation.valid
66 } // namespace geos.operation
67 } // namespace geos
68
69 #endif // GEOS_OP_REPEATEDPOINTTESTER_H
70
71 /**********************************************************************
72 * $Log$
73 * Revision 1.1 2006/03/20 16:57:44 strk
74 * spatialindex.h and opValid.h headers split
75 *
76 **********************************************************************/
77