RelateMatrixPredicate.h
/**********************************************************************
*
* GEOS - Geometry Engine Open Source
* http://geos.osgeo.org
*
* Copyright (c) 2024 Martin Davis
* Copyright (C) 2024 Paul Ramsey <pramsey@cleverelephant.ca>
*
* 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.
*
**********************************************************************/
#pragma once
#include <geos/geom/Location.h>
#include <geos/geom/Dimension.h>
#include <geos/geom/IntersectionMatrix.h>
#include <geos/operation/relateng/IMPredicate.h>
#include <geos/export.h>
#include <memory>
#include <vector>
// Forward declarations
namespace geos {
namespace geom {
class Envelope;
}
}
namespace geos { // geos.
namespace operation { // geos.operation.
namespace relateng { // geos.operation.relateng
class GEOS_DLL RelateMatrixPredicate : public IMPredicate {
using Envelope = geos::geom::Envelope;
using Location = geos::geom::Location;
using Dimension = geos::geom::Dimension;
using IntersectionMatrix = geos::geom::IntersectionMatrix;
public:
RelateMatrixPredicate() {};
std::string name() const override {
return "relateMatrix";
};
bool requireInteraction() const override {
//-- ensure entire matrix is computed
return false;
};
bool isDetermined() const override {
//-- ensure entire matrix is computed
return false;
};
bool valueIM() override {
//-- indicates full matrix is being evaluated
return false;
};
std::unique_ptr<IntersectionMatrix> getIM() {
return std::unique_ptr<IntersectionMatrix>(new IntersectionMatrix(intMatrix));
}
};
} // namespace geos.operation.relateng
} // namespace geos.operation
} // namespace geos
geos::geom::Envelope
An Envelope defines a rectangulare region of the 2D coordinate plane.
Definition Envelope.h:59
geos::geom
Definition Angle.h:26
geos::geom::Location
Location
Constants representing the location of a point relative to a geometry.
Definition Location.h:32
geos::operation
Provides classes for implementing operations on geometries.
Definition CleanCoverage.h:34
geos
Basic namespace for all GEOS functionalities.
Definition geos.h:38