Package org.locationtech.jts.jump.geom
Class EnvelopeIntersector
- java.lang.Object
-
- org.locationtech.jts.jump.geom.EnvelopeIntersector
-
public class EnvelopeIntersector extends Object
-
-
Constructor Summary
Constructors Constructor Description EnvelopeIntersector()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
intersects(org.locationtech.jts.geom.Geometry geometry, org.locationtech.jts.geom.Envelope envelope)
Returns whether the Geometry and the Envelope intersect, even if the Geometry is invalid.
-
-
-
Method Detail
-
intersects
public static boolean intersects(org.locationtech.jts.geom.Geometry geometry, org.locationtech.jts.geom.Envelope envelope)
Returns whether the Geometry and the Envelope intersect, even if the Geometry is invalid. Checks whether any points or line segments of the geometry intersect the Envelope, or whether the Envelope is wholly contained in any polygons.This code will only work correctly on valid geometries. (For instance, it may return
false
if the Envelope is wholly contained in an invalid polygon.- Parameters:
envelope
- the Envelope to testgeometry
- the Geometry to test, whether valid or not- Returns:
- whether the Envelope intersects the Geometry
-
-