/** * Computes the intersects predicate between a {@link PreparedLineString} * and a {@link Geometry}. * * @param prep the prepared linestring * @param geom a test geometry * @return true if the linestring intersects the geometry */ public static boolean intersects(PreparedLineString prep, Geometry geom) { PreparedLineStringIntersects op = new PreparedLineStringIntersects(prep); return op.intersects(geom); }
public boolean intersects(Geometry g) { if (! envelopesIntersect(g)) return false; return PreparedLineStringIntersects.intersects(this, g); }
return isAnyTestPointInTarget(geom);
public boolean intersects(Geometry g) { if (! envelopesIntersect(g)) return false; return PreparedLineStringIntersects.intersects(this, g); }
/** * Computes the intersects predicate between a {@link PreparedLineString} * and a {@link Geometry}. * * @param prep the prepared linestring * @param geom a test geometry * @return true if the linestring intersects the geometry */ public static boolean intersects(PreparedLineString prep, Geometry geom) { PreparedLineStringIntersects op = new PreparedLineStringIntersects(prep); return op.intersects(geom); }