2013-09-15 16:00:28 +02:00

14 lines
521 B
Plaintext

<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>
<pre>touches( $geometry , $geometry)</pre>
<h4>Arguments</h4>
geometry &rarr; geometry
geometry &rarr; geometry
<h4>Example</h4>
<pre> touches( geomFromWKT( 'LINESTRING(5 3 , 4 4)' ) , geomFromWKT( 'LINESTRING(3 3 , 4 4 , 5 5)' )) &rarr; returns 1</pre>
<pre> touches( geomFromWKT( 'POINT(4 4)' ) , geomFromWKT( 'POINT(5 5)' )) &rarr; returns 0</pre>