Open Destroy666x opened 5 years ago
Pinging @elastic/es-analytics-geo
In what context would such functions be used?
Custom scripts e.g. to obtain score for area detection.
That might be quite inefficient unless we add doc values support support for geo_shapes, which is something we would like to do for other reasons. So, we should probably revisit this after #32039.
Depends on #37206
This is definitely something we want to be able to support in the future as it adds value to Geo SQL. There are still quite a few dependencies and unknowns, however, that need to be addressed before we can begin listing out and planning those ST_
functions we want to / can support:
geo_shape
doc values is now supported, but we don't yet have a way of recreating the shape to begin computing geometry attributes (e.g., area, perimeter, overlap)I am marking this as high hanging fruit
and converting into a meta issue so we can start tracking the dependencies, and progress.
In the meantime, it would be useful to start listing those functions that are of most interest to our user base. I'll start:
ST_AREA
ST_PERIMETER
ST_DISTANCE
Describe the feature: It would be nice to have some scripting functions for shape-related checks - like if the document's shape intersects a shape passed as an argument or if a point is within a shape.