19 #ifndef GEOS_OP_PREDICATE_RECTANGLECONTAINS_H
20 #define GEOS_OP_PREDICATE_RECTANGLECONTAINS_H
22 #include <geos/export.h>
24 #include <geos/geom/Polygon.h>
51 class GEOS_DLL RectangleContains {
55 const geom::Envelope& rectEnv;
57 bool isContainedInBoundary(
const geom::Geometry& geom);
59 bool isPointContainedInBoundary(
const geom::Point& geom);
68 bool isPointContainedInBoundary(
const geom::Coordinate& pt);
77 bool isLineStringContainedInBoundary(
const geom::LineString& line);
87 bool isLineSegmentContainedInBoundary(
const geom::Coordinate& p0,
88 const geom::Coordinate& p1);
93 contains(
const geom::Polygon& rect,
const geom::Geometry& b)
95 RectangleContains rc(rect);
96 return rc.contains(b);
104 RectangleContains(
const geom::Polygon& rect)
106 rectEnv(*(rect.getEnvelopeInternal()))
109 bool contains(
const geom::Geometry& geom);
112 RectangleContains(
const RectangleContains& other) =
delete;
113 RectangleContains& operator=(
const RectangleContains& rhs) =
delete;
122 #endif // ifndef GEOS_OP_PREDICATE_RECTANGLECONTAINS_H