{ "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"] }