Class RectangleContains
java.lang.Object
org.locationtech.jts.operation.predicate.RectangleContains
Optimized implementation of the contains spatial predicate
for cases where the first
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.
- Version:
- 1.7
-
Constructor Summary
ConstructorsConstructorDescriptionRectangleContains(Polygon rectangle) Create a new contains computer for two geometries. -
Method Summary
-
Constructor Details
-
RectangleContains
Create a new contains computer for two geometries.- Parameters:
rectangle- a rectangular geometry
-
-
Method Details
-
contains
-
contains
-