mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-22 00:06:12 -05:00
22 lines
888 B
Plaintext
22 lines
888 B
Plaintext
{
|
|
"name": "contains",
|
|
"type": "function",
|
|
"groups": ["GeometryGroup"],
|
|
"description": "Tests whether a geometry contains another. Returns TRUE if and only if no points of geometry2 lie in the exterior of geometry1, and at least one point of the interior of geometry2 lies in the interior of geometry1.",
|
|
"arguments": [{
|
|
"arg": "geometry1",
|
|
"description": "a geometry"
|
|
}, {
|
|
"arg": "geometry2",
|
|
"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"
|
|
}],
|
|
"tags": ["lie", "point", "lies", "tests", "interior", "exterior", "within", "points", "contains"]
|
|
}
|