Coverage Report

Created: 2026-01-17 06:14

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/geos/src/geom/prep/PreparedPoint.cpp
Line
Count
Source
1
/**********************************************************************
2
 *
3
 * GEOS - Geometry Engine Open Source
4
 * http://geos.osgeo.org
5
 *
6
 * Copyright (C) 2001-2002 Vivid Solutions 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: geom/prep/PreparedPoint.java rev. 1.2 (JTS-1.10)
16
 *
17
 **********************************************************************/
18
19
20
#include <geos/geom/Geometry.h>
21
#include <geos/geom/prep/PreparedPoint.h>
22
23
#include "geos/util.h"
24
25
namespace geos {
26
namespace geom { // geos.geom
27
namespace prep { // geos.geom.prep
28
29
bool
30
PreparedPoint::intersects(const geom::Geometry* g) const
31
0
{
32
0
    util::ensureNoCurvedComponents(g);
33
34
0
    if(! envelopesIntersect(g)) {
35
0
        return false;
36
0
    }
37
38
    // This avoids computing topology for the test geometry
39
0
    return isAnyTargetComponentInTest(g);
40
0
}
41
42
} // namespace geos.geom.prep
43
} // namespace geos.geom
44
} // namespace geos