RelateOp.h
/**********************************************************************
*
* GEOS - Geometry Engine Open Source
* http://geos.osgeo.org
*
* Copyright (C) 2006 Refractions Research Inc.
*
* This is free software; you can redistribute and/or modify it under
* the terms of the GNU Lesser General Public Licence as published
* by the Free Software Foundation.
* See the COPYING file for more information.
*
**********************************************************************
*
* Last port: operation/relate/RelateOp.java rev. 1.19 (JTS-1.10)
*
**********************************************************************/
#pragma once
#include <geos/export.h>
#include <geos/geom/IntersectionMatrix.h>
#include <geos/operation/GeometryGraphOperation.h> // for inheritance
#include <geos/operation/relate/RelateComputer.h> // for composition
// Forward declarations
namespace geos {
namespace algorithm {
class BoundaryNodeRule;
}
namespace geom {
class Geometry;
}
}
namespace geos {
namespace operation { // geos::operation
namespace relate { // geos::operation::relate
class GEOS_DLL RelateOp: public GeometryGraphOperation {
public:
static std::unique_ptr<geom::IntersectionMatrix> relate(
const geom::Geometry* a,
const geom::Geometry* b);
static std::unique_ptr<geom::IntersectionMatrix> relate(
const geom::Geometry* a,
const geom::Geometry* b,
const algorithm::BoundaryNodeRule& boundaryNodeRule);
RelateOp(const geom::Geometry* g0,
const geom::Geometry* g1);
RelateOp(const geom::Geometry* g0,
const geom::Geometry* g1,
const algorithm::BoundaryNodeRule& boundaryNodeRule);
~RelateOp() override = default;
std::unique_ptr<geom::IntersectionMatrix> getIntersectionMatrix();
private:
RelateComputer relateComp;
};
} // namespace geos:operation:relate
} // namespace geos:operation
} // namespace geos
geos::algorithm::BoundaryNodeRule
An interface for rules which determine whether node points which are in boundaries of lineal geometry...
Definition BoundaryNodeRule.h:52
geos::geom::Geometry
Basic implementation of Geometry, constructed and destructed by GeometryFactory.
Definition Geometry.h:196
geos::operation::relate::RelateComputer
Computes the topological relationship between two Geometries.
Definition RelateComputer.h:77
geos::operation::relate::RelateOp::relate
static std::unique_ptr< geom::IntersectionMatrix > relate(const geom::Geometry *a, const geom::Geometry *b)
Computes the geom::IntersectionMatrix for the spatial relationship between two geom::Geometry objects...
geos::operation::relate::RelateOp::RelateOp
RelateOp(const geom::Geometry *g0, const geom::Geometry *g1, const algorithm::BoundaryNodeRule &boundaryNodeRule)
Creates a new Relate operation with a specified Boundary Node Rule.
geos::operation::relate::RelateOp::RelateOp
RelateOp(const geom::Geometry *g0, const geom::Geometry *g1)
Creates a new Relate operation, using the default (OGC SFS) Boundary Node Rule.
geos::operation::relate::RelateOp::relate
static std::unique_ptr< 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...
geos::operation::relate::RelateOp::getIntersectionMatrix
std::unique_ptr< geom::IntersectionMatrix > getIntersectionMatrix()
Gets the IntersectionMatrix for the spatial relationship between the input geometries.
geos::algorithm
Contains classes and interfaces implementing fundamental computational geometry algorithms.
Definition Angle.h:32
geos::geom
Definition Angle.h:26
geos::operation::relate
Contains classes to implement the computation of the spatial relationships of Geometrys.
Definition namespaces.h:280
geos::operation
Provides classes for implementing operations on geometries.
Definition CleanCoverage.h:34
geos
Basic namespace for all GEOS functionalities.
Definition geos.h:38