mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
14 lines
609 B
Plaintext
14 lines
609 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 a)</pre>
|
||
|
|
||
|
<h4>Arguments</h4>
|
||
|
geometry → geometry
|
||
|
geometry → geometry
|
||
|
|
||
|
<h4>Example</h4>
|
||
|
<pre> contains( geomFromWKT( 'POLYGON((0 0 , 0 1 , 1 1 , 1 0 , 0 0 ))' ) , geomFromWKT( 'POINT( 0.5 0.5 )' )) → 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)' )) → returns 0</pre>
|