2015-06-11 12:02:27 +10:00
|
|
|
{
|
2015-09-20 17:12:43 +02:00
|
|
|
"name": "within",
|
|
|
|
"type": "function",
|
2020-07-02 01:46:48 +01:00
|
|
|
"groups": ["GeometryGroup"],
|
2022-03-18 10:20:28 +01:00
|
|
|
"description": "Tests whether a geometry is within another. Returns TRUE if the geometry1 is completely within geometry2.",
|
2022-01-07 08:33:29 -05:00
|
|
|
"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))' ) )",
|
2022-03-30 18:48:02 +02:00
|
|
|
"returns": "TRUE"
|
2022-01-07 08:33:29 -05:00
|
|
|
}, {
|
|
|
|
"expression": "within( geom_from_wkt( 'POINT( 5 5 )' ), geom_from_wkt( 'POLYGON((0 0, 0 1, 1 1, 1 0, 0 0 ))' ) )",
|
2022-03-21 09:20:52 +01:00
|
|
|
"returns": "FALSE"
|
2022-01-07 08:33:29 -05:00
|
|
|
}],
|
2022-01-12 10:26:38 -05:00
|
|
|
"tags": ["tests", "contains", "completely"]
|
2015-06-11 12:02:27 +10:00
|
|
|
}
|