Top

Name

st_may_intersect — checks whether bounding boxes of two shapes intersect or some of its points are within the specified proximity.

Synopsis

st_may_intersect ( in shape1 any ,
  in shape2 any ,
  in proximity any );
 

Description

checks whether bounding boxes of two shapes intersect or some of its points are within the specified proximity. This is much faster than full st_intersects() check.

Parameters

shape1

Given shape

shape2

Given shape

proximity

A proximity.

Return Types

Returns any.

Examples

Example 24.667. Simple Use

SQL> SPARQL
SELECT ?s1 ?s2
FROM <http://geo-api-demo/>
WHERE
  {
    ?s1 ?p1 ?o1 .
    ?s2 ?p2 ?o2 .
    FILTER (bif:st_may_intersect (?o1, ?o2))
  }
ORDER BY ASC(str(?s1)) ASC(str(?s2));

s1                               s2
ANY                              ANY
_______________________________________________________________________________
http://geo-api-demo/box1	       http://geo-api-demo/box1
http://geo-api-demo/box1	       http://geo-api-demo/collection
http://geo-api-demo/box1	       http://geo-api-demo/multipolygon
http://geo-api-demo/box1	       http://geo-api-demo/point2d
http://geo-api-demo/box1	       http://geo-api-demo/point4d
http://geo-api-demo/box1	       http://geo-api-demo/polygon1
http://geo-api-demo/collection	 http://geo-api-demo/box1
http://geo-api-demo/collection	 http://geo-api-demo/collection
http://geo-api-demo/collection	 http://geo-api-demo/multipolygon