GEOS 3.6.2
RelateOp.h
1/**********************************************************************
2 *
3 * GEOS - Geometry Engine Open Source
4 * http://geos.osgeo.org
5 *
6 * Copyright (C) 2006 Refractions Research Inc.
7 *
8 * This is free software; you can redistribute and/or modify it under
9 * the terms of the GNU Lesser General Public Licence as published
10 * by the Free Software Foundation.
11 * See the COPYING file for more information.
12 *
13 **********************************************************************
14 *
15 * Last port: operation/relate/RelateOp.java rev. 1.19 (JTS-1.10)
16 *
17 **********************************************************************/
18
19#ifndef GEOS_OP_RELATE_RELATEOP_H
20#define GEOS_OP_RELATE_RELATEOP_H
21
22#include <geos/export.h>
23
24#include <geos/operation/GeometryGraphOperation.h> // for inheritance
25#include <geos/operation/relate/RelateComputer.h> // for composition
26
27// Forward declarations
28namespace geos {
29 namespace algorithm {
30 class BoundaryNodeRule;
31 }
32 namespace geom {
34 class Geometry;
35 }
36}
37
38
39namespace geos {
40namespace operation { // geos::operation
41namespace relate { // geos::operation::relate
42
57class GEOS_DLL RelateOp: public GeometryGraphOperation {
58
59public:
60
73 const geom::Geometry *a,
74 const geom::Geometry *b);
75
89 const geom::Geometry *a,
90 const geom::Geometry *b,
91 const algorithm::BoundaryNodeRule& boundaryNodeRule);
92
101 const geom::Geometry *g1);
102
112 const geom::Geometry *g1,
113 const algorithm::BoundaryNodeRule& boundaryNodeRule);
114
115 virtual ~RelateOp();
116
126
127private:
128
129 RelateComputer relateComp;
130};
131
132
133} // namespace geos:operation:relate
134} // namespace geos:operation
135} // namespace geos
136
137#endif // GEOS_OP_RELATE_RELATEOP_H
Definition BoundaryNodeRule.h:50
Basic implementation of Geometry, constructed and destructed by GeometryFactory.
Definition Geometry.h:167
Implementation of Dimensionally Extended Nine-Intersection Model (DE-9IM) matrix.
Definition IntersectionMatrix.h:51
Computes the topological relationship between two Geometries.
Definition RelateComputer.h:75
geom::IntersectionMatrix * getIntersectionMatrix()
Gets the IntersectionMatrix for the spatial relationship between the input geometries.
static geom::IntersectionMatrix * relate(const geom::Geometry *a, const geom::Geometry *b)
Computes the geom::IntersectionMatrix for the spatial relationship between two geom::Geometry objects...
static geom::IntersectionMatrix * relate(const geom::Geometry *a, const geom::Geometry *b, const algorithm::BoundaryNodeRule &boundaryNodeRule)
Computes the geom::IntersectionMatrix for the spatial relationship between two geom::Geometry objects...
RelateOp(const geom::Geometry *g0, const geom::Geometry *g1, const algorithm::BoundaryNodeRule &boundaryNodeRule)
Creates a new Relate operation with a specified Boundary Node Rule.
RelateOp(const geom::Geometry *g0, const geom::Geometry *g1)
Creates a new Relate operation, using the default (OGC SFS) Boundary Node Rule.
Contains classes and interfaces implementing fundamental computational geometry algorithms.
Definition Angle.h:33
Contains the Geometry interface hierarchy and supporting classes.
Definition IndexedNestedRingTester.h:26
Contains classes to implement the computation of the spatial relationships of Geometrys.
Definition EdgeEndBuilder.h:42
Provides classes for implementing operations on geometries.
Definition IndexedNestedRingTester.h:40
Basic namespace for all GEOS functionalities.
Definition IndexedNestedRingTester.h:25