﻿---
title: ES|QL ST_ISEMPTY function
description: 
url: https://www.elastic.co/elastic/docs-builder/docs/2993/reference/query-languages/esql/functions-operators/spatial-functions/st_isempty
products:
  - Elasticsearch
---

# ES|QL ST_ISEMPTY function
<applies-to>
  - Elastic Cloud Serverless: Preview
  - Elastic Stack: Planned
</applies-to>


## Syntax

![Embedded](https://www.elastic.co/elastic/docs-builder/docs/2993/reference/query-languages/esql/images/functions/st_isempty.svg)


## Parameters

<definitions>
  <definition term="geometry">
    Expression of type `geo_point`, `geo_shape`, `cartesian_point` or `cartesian_shape`. If `null`, the function returns `null`.
  </definition>
</definitions>


## Description

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.

## Supported types


| geometry        | result  |
|-----------------|---------|
| cartesian_point | boolean |
| cartesian_shape | boolean |
| geo_point       | boolean |
| geo_shape       | boolean |


## Example

```esql
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                  |