GEOS 3.6.2
RepeatedPointTester.h
1/**********************************************************************
2 *
3 * GEOS - Geometry Engine Open Source
4 * http://geos.osgeo.org
5 *
6 * Copyright (C) 2005-2006 Refractions Research Inc.
7 * Copyright (C) 2001-2002 Vivid Solutions Inc.
8 *
9 * This is free software; you can redistribute and/or modify it under
10 * the terms of the GNU Lesser General Public Licence as published
11 * by the Free Software Foundation.
12 * See the COPYING file for more information.
13 *
14 **********************************************************************
15 *
16 * Last port: operation/valid/RepeatedPointTester.java rev. 1.8 (JTS-1.10)
17 *
18 **********************************************************************/
19
20#ifndef GEOS_OP_REPEATEDPOINTTESTER_H
21#define GEOS_OP_REPEATEDPOINTTESTER_H
22
23#include <geos/export.h>
24
25#include <geos/geom/Coordinate.h> // for composition
26
27// Forward declarations
28namespace geos {
29 namespace geom {
30 //class Coordinate;
32 class Geometry;
33 class Polygon;
34 class MultiPolygon;
35 class MultiLineString;
37 }
38}
39
40namespace geos {
41namespace operation { // geos::operation
42namespace valid { // geos::operation::valid
43
49class GEOS_DLL RepeatedPointTester {
50public:
51 RepeatedPointTester() {}
52 geom::Coordinate& getCoordinate();
53 bool hasRepeatedPoint(const geom::Geometry *g);
54 bool hasRepeatedPoint(const geom::CoordinateSequence *coord);
55private:
56 geom::Coordinate repeatedCoord;
57 bool hasRepeatedPoint(const geom::Polygon *p);
58 bool hasRepeatedPoint(const geom::GeometryCollection *gc);
59 bool hasRepeatedPoint(const geom::MultiPolygon *gc);
60 bool hasRepeatedPoint(const geom::MultiLineString *gc);
61};
62
63
64} // namespace geos.operation.valid
65} // namespace geos.operation
66} // namespace geos
67
68#endif // GEOS_OP_REPEATEDPOINTTESTER_H
The internal representation of a list of coordinates inside a Geometry.
Definition CoordinateSequence.h:59
Coordinate is the lightweight class used to store coordinates.
Definition Coordinate.h:60
Represents a collection of heterogeneous Geometry objects.
Definition GeometryCollection.h:56
Basic implementation of Geometry, constructed and destructed by GeometryFactory.
Definition Geometry.h:167
Models a collection of (}s.
Definition MultiLineString.h:51
Models a collection of Polygons.
Definition MultiPolygon.h:61
Represents a linear polygon, which may include holes.
Definition Polygon.h:67
Contains the Geometry interface hierarchy and supporting classes.
Definition IndexedNestedRingTester.h:26
Provides classes for testing the validity of geometries.
Definition IndexedNestedRingTester.h:41
Provides classes for implementing operations on geometries.
Definition IndexedNestedRingTester.h:40
Basic namespace for all GEOS functionalities.
Definition IndexedNestedRingTester.h:25