ES|QL ST_ISEMPTY function
geometry-
Expression of type
geo_point,geo_shape,cartesian_pointorcartesian_shape. Ifnull, the function returnsnull.
Returns true if the supplied geometry is empty. An empty geometry is one that has no points, such as an empty geometry collection or an empty linestring.
| geometry | result |
|---|---|
| cartesian_point | boolean |
| cartesian_shape | boolean |
| geo_point | boolean |
| geo_shape | boolean |
ROW point = TO_GEOPOINT("POINT(1.0 2.0)"), empty_line = TO_GEOSHAPE("LINESTRING EMPTY"), empty_polygon = TO_GEOSHAPE("POLYGON EMPTY")
| EVAL pt_empty = ST_ISEMPTY(point), line_empty = ST_ISEMPTY(empty_line), polygon_empty = ST_ISEMPTY(empty_polygon)
| KEEP pt_empty, line_empty, polygon_empty
| pt_empty:boolean | line_empty:boolean | polygon_empty:boolean |
|---|---|---|
| false | true | true |