Skip to content

Three new simple but useful spatial functions#144703

Open
craigtaverner wants to merge 11 commits intoelastic:mainfrom
craigtaverner:three_spatial_functions
Open

Three new simple but useful spatial functions#144703
craigtaverner wants to merge 11 commits intoelastic:mainfrom
craigtaverner:three_spatial_functions

Conversation

@craigtaverner
Copy link
Contributor

Three new simple but useful spatial functions

  • ST_Dimension (topological dimension)
    • The topological dimension is 0 for points, 1 for lines and 2 for polygons. This is important in understanding how centroids are calculated in ST_CENTROID_AGG, where higher dimensions completely remove the contribution from lower ones.
    • See the PostGIS equivalent at https://postgis.net/docs/ST_Dimension.html
  • ST_GeometryType
  • ST_IsEmpty

* ST_Dimension (topological dimension) as in https://postgis.net/docs/ST_Dimension.html
* ST_GeometryType (string name of geometry type) as in https://postgis.net/docs/ST_GeometryType.html
* ST_IsEmpty (boolean) as in https://postgis.net/docs/ST_IsEmpty.html
@craigtaverner craigtaverner requested a review from a team as a code owner March 21, 2026 20:16
@craigtaverner craigtaverner added >enhancement :Analytics/Geo Indexing, search aggregations of geo points and shapes Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo) :Analytics/ES|QL AKA ESQL labels Mar 21, 2026
@craigtaverner craigtaverner requested review from ncordon and removed request for a team March 21, 2026 20:16
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-analytical-engine (Team:Analytics)

@elasticsearchmachine
Copy link
Collaborator

Hi @craigtaverner, I've created a changelog YAML for you.

@github-actions
Copy link
Contributor

ℹ️ Important: Docs version tagging

👋 Thanks for updating the docs! Just a friendly reminder that our docs are now cumulative. This means all 9.x versions are documented on the same page and published off of the main branch, instead of creating separate pages for each minor version.

We use applies_to tags to mark version-specific features and changes.

Expand for a quick overview

When to use applies_to tags:

✅ At the page level to indicate which products/deployments the content applies to (mandatory)
✅ When features change state (e.g. preview, ga) in a specific version
✅ When availability differs across deployments and environments

What NOT to do:

❌ Don't remove or replace information that applies to an older version
❌ Don't add new information that applies to a specific version without an applies_to tag
❌ Don't forget that applies_to tags can be used at the page, section, and inline level

🤔 Need help?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:Analytics/ES|QL AKA ESQL :Analytics/Geo Indexing, search aggregations of geo points and shapes >enhancement Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo) v9.4.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants