Class EnvelopeIntersector
java.lang.Object
com.vividsolutions.jump.geom.EnvelopeIntersector
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanintersects(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.
-
Constructor Details
-
EnvelopeIntersector
public EnvelopeIntersector()
-
-
Method Details
-
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
falseif the Envelope is wholly contained in an invalid polygon.- Parameters:
geometry- the Geometry to test, whether valid or notenvelope- the Envelope to test- Returns:
- whether the Envelope intersects the Geometry
-