GEOS
3.9.1dev
|
Optimized implementation of the "intersects" spatial predicate for cases where one Geometry is a rectangle. More...
#include <RectangleIntersects.h>
Public Member Functions | |
RectangleIntersects (const geom::Polygon &newRect) | |
Create a new intersects computer for a rectangle. More... | |
bool | intersects (const geom::Geometry &geom) |
Static Public Member Functions | |
static bool | intersects (const geom::Polygon &rectangle, const geom::Geometry &b) |
Tests whether a rectangle intersects a given geometry. More... | |
Private Member Functions | |
RectangleIntersects (const RectangleIntersects &other)=delete | |
RectangleIntersects & | operator= (const RectangleIntersects &rhs)=delete |
Private Attributes | |
const geom::Polygon & | rectangle |
const geom::Envelope & | rectEnv |
Optimized implementation of the "intersects" spatial predicate for cases where one Geometry is a rectangle.
This class works for all input geometries, including GeometryCollections.
As a further optimization, this class can be used to test many geometries against a single rectangle in a slightly more efficient way.
Definition at line 52 of file RectangleIntersects.h.
|
privatedelete |
|
inline |
Create a new intersects computer for a rectangle.
newRect | a rectangular geometry |
Definition at line 71 of file RectangleIntersects.h.
bool geos::operation::predicate::RectangleIntersects::intersects | ( | const geom::Geometry & | geom | ) |
|
inlinestatic |
Tests whether a rectangle intersects a given geometry.
rectangle | a rectangular Polygon |
b | a Geometry of any type |
Definition at line 87 of file RectangleIntersects.h.
References intersects().
|
privatedelete |
|
private |
Definition at line 56 of file RectangleIntersects.h.
|
private |
Definition at line 58 of file RectangleIntersects.h.