Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
17 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions docs/changelog/139618.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
pr: 139618
summary: Various fixes to spatial functions (ST_ENVELOPE and ST_NPOINTS)
area: ES|QL
type: enhancement
issues: []

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -1,15 +1,19 @@
* [`ST_DISTANCE`](../../functions-operators/spatial-functions.md#esql-st_distance)
* [`ST_INTERSECTS`](../../functions-operators/spatial-functions.md#esql-st_intersects)
* [`ST_DISJOINT`](../../functions-operators/spatial-functions.md#esql-st_disjoint)
* [`ST_CONTAINS`](../../functions-operators/spatial-functions.md#esql-st_contains)
* [`ST_WITHIN`](../../functions-operators/spatial-functions.md#esql-st_within)
* [`ST_X`](../../functions-operators/spatial-functions.md#esql-st_x)
* [`ST_Y`](../../functions-operators/spatial-functions.md#esql-st_y)
* Geospatial predicates
* [`ST_DISTANCE`](../../functions-operators/spatial-functions.md#esql-st_distance)
* [`ST_INTERSECTS`](../../functions-operators/spatial-functions.md#esql-st_intersects)
* [`ST_DISJOINT`](../../functions-operators/spatial-functions.md#esql-st_disjoint)
* [`ST_CONTAINS`](../../functions-operators/spatial-functions.md#esql-st_contains)
* [`ST_WITHIN`](../../functions-operators/spatial-functions.md#esql-st_within)
* Geometry functions
* [`ST_X`](../../functions-operators/spatial-functions.md#esql-st_x)
* [`ST_Y`](../../functions-operators/spatial-functions.md#esql-st_y)
* [`ST_NPOINTS`](../../functions-operators/spatial-functions.md#esql-st_npoints) {applies_to}`stack: preview` {applies_to}`serverless: preview`
* [`ST_ENVELOPE`](../../functions-operators/spatial-functions.md#esql-st_envelope) {applies_to}`stack: preview` {applies_to}`serverless: preview`
* [`ST_XMAX`](../../functions-operators/spatial-functions.md#esql-st_xmax) {applies_to}`stack: preview` {applies_to}`serverless: preview`
* [`ST_XMIN`](../../functions-operators/spatial-functions.md#esql-st_xmin) {applies_to}`stack: preview` {applies_to}`serverless: preview`
* [`ST_YMAX`](../../functions-operators/spatial-functions.md#esql-st_ymax) {applies_to}`stack: preview` {applies_to}`serverless: preview`
* [`ST_YMIN`](../../functions-operators/spatial-functions.md#esql-st_ymin) {applies_to}`stack: preview` {applies_to}`serverless: preview`
* [`ST_GEOTILE`](../../functions-operators/spatial-functions.md#esql-st_geotile) {applies_to}`stack: preview` {applies_to}`serverless: preview`
* [`ST_GEOHEX`](../../functions-operators/spatial-functions.md#esql-st_geohex) {applies_to}`stack: preview` {applies_to}`serverless: preview`
* [`ST_GEOHASH`](../../functions-operators/spatial-functions.md#esql-st_geohash) {applies_to}`stack: preview` {applies_to}`serverless: preview`
* Grid encoding functions
* [`ST_GEOTILE`](../../functions-operators/spatial-functions.md#esql-st_geotile) {applies_to}`stack: preview` {applies_to}`serverless: preview`
* [`ST_GEOHEX`](../../functions-operators/spatial-functions.md#esql-st_geohex) {applies_to}`stack: preview` {applies_to}`serverless: preview`
* [`ST_GEOHASH`](../../functions-operators/spatial-functions.md#esql-st_geohash) {applies_to}`stack: preview` {applies_to}`serverless: preview`
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ mapped_pages:
:::{include} ../_snippets/lists/spatial-functions.md
:::

## Geospatial predicates

:::{include} ../_snippets/functions/layout/st_distance.md
:::
Expand All @@ -30,12 +31,17 @@ mapped_pages:
:::{include} ../_snippets/functions/layout/st_within.md
:::

## Geometry functions

:::{include} ../_snippets/functions/layout/st_x.md
:::

:::{include} ../_snippets/functions/layout/st_y.md
:::

:::{include} ../_snippets/functions/layout/st_npoints.md
:::

:::{include} ../_snippets/functions/layout/st_envelope.md
:::

Expand All @@ -51,6 +57,8 @@ mapped_pages:
:::{include} ../_snippets/functions/layout/st_ymin.md
:::

## Grid encoding functions

:::{include} ../_snippets/functions/layout/st_geotile.md
:::

Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* License v3.0 only", or the "Server Side Public License, v 1".
*/

package org.elasticsearch.geo;
package org.elasticsearch.geometry.utils;

import org.elasticsearch.geometry.Circle;
import org.elasticsearch.geometry.Geometry;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
import org.elasticsearch.geometry.Polygon;
import org.elasticsearch.geometry.Rectangle;
import org.elasticsearch.geometry.ShapeType;
import org.elasticsearch.geometry.utils.GeometryPointCountVisitor;
import org.elasticsearch.test.ESTestCase;

import java.util.ArrayList;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
import org.elasticsearch.geometry.Point;
import org.elasticsearch.geometry.Polygon;
import org.elasticsearch.geometry.Rectangle;
import org.elasticsearch.geometry.utils.GeometryPointCountVisitor;
import org.elasticsearch.test.ESTestCase;

import java.util.ArrayList;
Expand Down
Loading
Loading