2015-06-11 12:02:27 +10:00
{
2015-09-20 17:12:43 +02:00
"name": "overlaps",
"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 overlaps another. Returns TRUE if the geometries share space, are of the same dimension, but are not completely contained by each other.",
2022-01-07 08:33:29 -05:00
"arguments": [{
"arg": "geometry1",
"description": "a geometry"
}, {
"arg": "geometry2",
"description": "a geometry"
}],
"examples": [{
"expression": "overlaps( geom_from_wkt( 'LINESTRING(3 5, 4 4, 5 5, 5 3)' ), geom_from_wkt( 'LINESTRING(3 3, 4 4, 5 5)' ) )",
2022-04-01 07:33:36 +02:00
"returns": "TRUE"
2022-01-07 08:33:29 -05:00
}, {
"expression": "overlaps( geom_from_wkt( 'LINESTRING(0 0, 1 1)' ), geom_from_wkt( 'LINESTRING(3 3, 4 4, 5 5)' ) )",
2022-03-21 09:20:52 +01:00
"returns": "FALSE"
2022-01-07 08:33:29 -05:00
}],
2022-01-11 11:25:21 -05:00
"tags": ["share", "tests", "contained", "overlaps", "same", "dimension", "space"]
2015-06-11 12:02:27 +10:00
}