14 lines
609 B
Plaintext
Raw Normal View History

<h3>contains function</h3>
Returns true if and only if no points of b lie in the exterior of a, and at least one point of the interior of b lies in the interior of a.
<h4>Syntax</h4>
<pre>contains( geometry a , geometry a)</pre>
<h4>Arguments</h4>
geometry &rarr; geometry
geometry &rarr; geometry
<h4>Example</h4>
<pre> contains( geomFromWKT( 'POLYGON((0 0 , 0 1 , 1 1 , 1 0 , 0 0 ))' ) , geomFromWKT( 'POINT( 0.5 0.5 )' )) &rarr; returns 1</pre>
<pre> contains( geomFromWKT( 'POLYGON((0 0 , 0 1 , 1 1 , 1 0 , 0 0 ))' ) , geomFromWKT( 'LINESTRING(3 3 , 4 4 , 5 5)' )) &rarr; returns 0</pre>