Coverage Report

Created: 2025-03-15 06:58

/src/geos/include/geos/operation/relateng/RelateMatrixPredicate.h
Line
Count
Source (jump to first uncovered line)
1
/**********************************************************************
2
 *
3
 * GEOS - Geometry Engine Open Source
4
 * http://geos.osgeo.org
5
 *
6
 * Copyright (c) 2024 Martin Davis
7
 * Copyright (C) 2024 Paul Ramsey <pramsey@cleverelephant.ca>
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
#pragma once
17
18
#include <geos/geom/Location.h>
19
#include <geos/geom/Dimension.h>
20
#include <geos/geom/IntersectionMatrix.h>
21
#include <geos/operation/relateng/IMPredicate.h>
22
#include <geos/export.h>
23
24
#include <memory>
25
#include <vector>
26
27
// Forward declarations
28
namespace geos {
29
namespace geom {
30
    class Envelope;
31
}
32
}
33
34
namespace geos {      // geos.
35
namespace operation { // geos.operation.
36
namespace relateng {  // geos.operation.relateng
37
38
39
class GEOS_DLL RelateMatrixPredicate : public IMPredicate {
40
    using Envelope = geos::geom::Envelope;
41
    using Location = geos::geom::Location;
42
    using Dimension = geos::geom::Dimension;
43
    using IntersectionMatrix = geos::geom::IntersectionMatrix;
44
45
public:
46
47
0
    RelateMatrixPredicate() {};
48
49
0
    std::string name() const override {
50
0
        return "relateMatrix";
51
0
    };
52
53
0
    bool requireInteraction() const override {
54
        //-- ensure entire matrix is computed
55
0
        return false;
56
0
    };
57
58
0
    bool isDetermined() const override {
59
        //-- ensure entire matrix is computed
60
0
        return false;
61
0
    };
62
63
0
    bool valueIM() override {
64
        //-- indicates full matrix is being evaluated
65
0
        return false;
66
0
    };
67
68
    /**
69
    * Gets the current state of the IM matrix (which may only be partially complete).
70
    *
71
    * @return the IM matrix
72
    */
73
0
    std::unique_ptr<IntersectionMatrix> getIM() {
74
0
        return std::unique_ptr<IntersectionMatrix>(new IntersectionMatrix(intMatrix));
75
0
    }
76
77
};
78
79
} // namespace geos.operation.relateng
80
} // namespace geos.operation
81
} // namespace geos
82