2022-03-21 09:20:52 +01:00

22 lines
707 B
Plaintext

{
"name": "within",
"type": "function",
"groups": ["GeometryGroup"],
"description": "Tests whether a geometry is within another. Returns TRUE if the geometry1 is completely within geometry2.",
"arguments": [{
"arg": "geometry1",
"description": "a geometry"
}, {
"arg": "geometry2",
"description": "a geometry"
}],
"examples": [{
"expression": "within( geom_from_wkt( 'POINT( 0.5 0.5)' ), geom_from_wkt( 'POLYGON((0 0, 0 1, 1 1, 1 0, 0 0))' ) )",
"returns": "true"
}, {
"expression": "within( geom_from_wkt( 'POINT( 5 5 )' ), geom_from_wkt( 'POLYGON((0 0, 0 1, 1 1, 1 0, 0 0 ))' ) )",
"returns": "FALSE"
}],
"tags": ["tests", "contains", "completely"]
}