public class ST_AnyInteract
extends TwoGeoFunction
Determines if geometry1 has any spatial interaction with geometry2, returning true or false.
Format:
ST_AnyInteract(geometry1 ST_Geometry, geometry2 ST_Geometry, tolerance NUMBER) - return true if geometry1 has any interaction with geometry2
The tolerance at which geometry2 is valid is optional.
By default the tolerance is 0.05 for geodetic geometries and 0 for non geodetic.
Example:
select ST_AnyInteract(
ST_Point('{ "type": "Point", "coordinates": [2, 3]}', 8307),
ST_Polygon('{"type": "Polygon","coordinates": [[[1, 2], [5, 2], [5, 6], [1, 6], [1, 2]]]}', 8307)
) from hivetable LIMIT 1; -- return true