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

# ES|QL ST_DISJOINT function
## Syntax

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


## Parameters

<definitions>
  <definition term="geomA">
    Expression that is either a geometry (`geo_point`, `cartesian_point`, `geo_shape` or `cartesian_shape`) or a geo-grid value (`geohash`, `geotile`, `geohex`). If `null`, the function returns `null`.
  </definition>
  <definition term="geomB">
    Expression that is either a geometry (`geo_point`, `cartesian_point`, `geo_shape` or `cartesian_shape`) or a geo-grid value (`geohash`, `geotile`, `geohex`). If `null`, the function returns `null`. The second parameter must also have the same coordinate system as the first. This means it is not possible to combine `geo_*` and `cartesian_*` parameters.
  </definition>
</definitions>


## Description

Returns whether the two geometries or geometry columns are disjoint. This is the inverse of the [ST_INTERSECTS](https://www.elastic.co/elastic/docs-builder/docs/2791/reference/query-languages/esql/functions-operators/spatial-functions/st_intersects) function. In mathematical terms: ST_Disjoint(A, B) ⇔ A ⋂ B = ∅

## Supported types


| geomA           | geomB           | result  |
|-----------------|-----------------|---------|
| cartesian_point | cartesian_point | boolean |
| cartesian_point | cartesian_shape | boolean |
| cartesian_shape | cartesian_point | boolean |
| cartesian_shape | cartesian_shape | boolean |
| geo_point       | geo_point       | boolean |
| geo_point       | geo_shape       | boolean |
| geo_point       | geohash         | boolean |
| geo_point       | geohex          | boolean |
| geo_point       | geotile         | boolean |
| geo_shape       | geo_point       | boolean |
| geo_shape       | geo_shape       | boolean |
| geohash         | geo_point       | boolean |
| geohex          | geo_point       | boolean |
| geotile         | geo_point       | boolean |


## Example

```esql
FROM airport_city_boundaries
| WHERE ST_DISJOINT(city_boundary, TO_GEOSHAPE("POLYGON((-10 -60, 120 -60, 120 60, -10 60, -10 -60))"))
| KEEP abbrev, airport, region, city, city_location
```


| abbrev:keyword | airport:text                 | region:text        | city:keyword       | city_location:geo_point  |
|----------------|------------------------------|--------------------|--------------------|--------------------------|
| ACA            | General Juan N Alvarez Int'l | Acapulco de Juárez | Acapulco de Juárez | POINT (-99.8825 16.8636) |