mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-23 00:02:38 -05:00
11 lines
712 B
Plaintext
11 lines
712 B
Plaintext
{
|
|
"name": "contains",
|
|
"type": "function",
|
|
"description": "Tests whether a geometry contains another. Returns true if and only if no points of geometry b lie in the exterior of geometry a, and at least one point of the interior of b lies in the interior of a.",
|
|
"arguments": [ {"arg":"geometry a","description":"a geometry"},
|
|
{"arg":"geometry b","description":"a geometry"}],
|
|
"examples": [ { "expression":"contains( geom_from_wkt( 'POLYGON((0 0, 0 1, 1 1, 1 0, 0 0))' ), geom_from_wkt( 'POINT(0.5 0.5 )' ) )", "returns":"true"},
|
|
{ "expression":"contains( geom_from_wkt( 'POLYGON((0 0, 0 1, 1 1, 1 0, 0 0))' ), geom_from_wkt( 'LINESTRING(3 3, 4 4, 5 5)' ) )", "returns":"false"}
|
|
]
|
|
}
|