mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
14 lines
522 B
Plaintext
14 lines
522 B
Plaintext
<h3>crosses function</h3>
|
|
Returns 1 if the supplied geometries have some, but not all, interior points in common.
|
|
|
|
<h4>Syntax</h4>
|
|
<pre>crosses( $geometry , $geometry)</pre>
|
|
|
|
<h4>Arguments</h4>
|
|
geometry → geometry
|
|
geometry → geometry
|
|
|
|
<h4>Example</h4>
|
|
<pre> crosses( geomFromWKT( 'LINESTRING(3 5 , 4 4 , 5 3)' ) , geomFromWKT( 'LINESTRING(3 3 , 4 4 , 5 5)' )) → returns 1</pre>
|
|
<pre> crosses( geomFromWKT( 'POINT(4 5)' ) , geomFromWKT( 'LINESTRING(3 3 , 4 4 , 5 5)' )) → returns 0</pre>
|