cdavila 8c7b6717c9 Fix wrong reference to geometries in sintax
Geometry a was repeated and geometry was missing
2014-06-17 08:44:56 +02:00

14 lines
608 B
Plaintext

<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 b)</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>