2013-09-15 16:00:28 +02:00
|
|
|
<h3>intersects function</h3>
|
|
|
|
Returns 1 if the geometries spatially intersect (share any portion of space) and 0 if they don't.
|
|
|
|
|
|
|
|
<h4>Syntax</h4>
|
2013-09-15 19:21:51 +02:00
|
|
|
<pre>intersects( a, b )</pre>
|
2013-09-15 16:00:28 +02:00
|
|
|
|
|
|
|
<h4>Arguments</h4>
|
2013-09-15 19:21:51 +02:00
|
|
|
a → geometry
|
|
|
|
b → geometry
|
2013-09-15 16:00:28 +02:00
|
|
|
|
|
|
|
<h4>Example</h4>
|
|
|
|
<pre> intersects( geomFromWKT( 'POINT(4 4)' ) , geomFromWKT( 'LINESTRING(3 3 , 4 4 , 5 5)' )) → returns 1</pre>
|
|
|
|
<pre> intersects( geomFromWKT( 'POINT(4 5)' ) , geomFromWKT( 'POINT(5 5)' )) → returns 0</pre>
|