2013-09-15 16:00:28 +02:00
|
|
|
<h3>touches function</h3>
|
|
|
|
Returns 1 if the geometries have at least one point in common, but their interiors do not intersect.
|
|
|
|
|
|
|
|
<h4>Syntax</h4>
|
2013-09-15 19:21:51 +02:00
|
|
|
<pre>touches( 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> touches( geomFromWKT( 'LINESTRING(5 3 , 4 4)' ) , geomFromWKT( 'LINESTRING(3 3 , 4 4 , 5 5)' )) → returns 1</pre>
|
|
|
|
<pre> touches( geomFromWKT( 'POINT(4 4)' ) , geomFromWKT( 'POINT(5 5)' )) → returns 0</pre>
|