2019-12-13 07:21:53 +01:00
{
"name": "is_empty_or_null",
"type": "function",
2020-07-02 01:46:48 +01:00
"groups": ["GeometryGroup"],
2019-12-13 07:21:53 +01:00
"description": "Returns true if a geometry is NULL or empty (without coordinates) or false otherwise. This function is like the expression '$geometry IS NULL or is_empty($geometry)'",
2020-07-29 17:39:43 +02:00
"arguments": [ {"arg":"geometry","description":"a geometry"}],
2019-12-13 07:21:53 +01:00
"examples": [ { "expression":"is_empty_or_null(NULL)", "returns":"true"},
{ "expression":"is_empty_or_null(geom_from_wkt('LINESTRING(0 0, 1 1, 2 2)'))", "returns":"false"},
{ "expression":"is_empty_or_null(geom_from_wkt('LINESTRING EMPTY'))", "returns":"true"},
{ "expression":"is_empty_or_null(geom_from_wkt('POINT(7 4)'))", "returns":"false"},
{ "expression":"is_empty_or_null(geom_from_wkt('POINT EMPTY'))", "returns":"true"} ]
}