2022-04-04 09:47:19 +10:00

22 lines
727 B
Plaintext

{
"name": "disjoint",
"type": "function",
"groups": ["GeometryGroup"],
"description": "Tests whether geometries do not spatially intersect. Returns TRUE if the geometries do not share any space together.",
"arguments": [{
"arg": "geometry1",
"description": "a geometry"
}, {
"arg": "geometry2",
"description": "a geometry"
}],
"examples": [{
"expression": "disjoint( 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": "TRUE"
}, {
"expression": "disjoint( geom_from_wkt( 'LINESTRING(3 3, 4 4, 5 5)' ), geom_from_wkt( 'POINT(4 4)' ))",
"returns": "FALSE"
}],
"tags": ["share", "intersect", "tests", "space"]
}