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

25 lines
796 B
Plaintext

{
"name": "is_empty",
"type": "function",
"groups": ["GeometryGroup"],
"description": "Returns TRUE if a geometry is empty (without coordinates), false if the geometry is not empty and NULL if there is no geometry. See also is_empty_or_null.",
"arguments": [{
"arg": "geometry",
"description": "a geometry"
}],
"examples": [{
"expression": "is_empty(geom_from_wkt('LINESTRING(0 0, 1 1, 2 2)'))",
"returns": "FALSE"
}, {
"expression": "is_empty(geom_from_wkt('LINESTRING EMPTY'))",
"returns": "TRUE"
}, {
"expression": "is_empty(geom_from_wkt('POINT(7 4)'))",
"returns": "FALSE"
}, {
"expression": "is_empty(geom_from_wkt('POINT EMPTY'))",
"returns": "TRUE"
}],
"tags": ["empty", "is_empty_or_null", "see", "coordinates", "false"]
}