Skip to content

simplify geo_shape geometry for query response #96033

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
nreese opened this issue May 11, 2023 · 2 comments
Open

simplify geo_shape geometry for query response #96033

nreese opened this issue May 11, 2023 · 2 comments
Labels
:Analytics/Geo Indexing, search aggregations of geo points and shapes >enhancement Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo)

Comments

@nreese
Copy link
Contributor

nreese commented May 11, 2023

Enhancement request

Allow for simplification of geo_shape geometry in _search response.

Kibana maps use case

In Kibana, the optimal way to retrieve documents is vector tile search API. However, Kibana can not always use the vector tile search API and must fallback to JSON search API under the following circumstances

  • Formatted labels
  • Data driven styling from join metrics with 'Label', 'Label size', icon 'Symbol size', and 'Symbol orientation' style properties
  • Spatial joins (in development)

In cases where JSON search API is required, loading complex geometries is noticeably slow. The performance is effect by having to transmit large amounts of ASCII data across the network. Being able to simplify geo_shape geometry for query response would mitigate the problem by transferring significantly less data across the network.

One risk is that geometry simplification may be more time consuming than transferring the original geometry across the network.

@nreese nreese added >enhancement needs:triage Requires assignment of a team area label labels May 11, 2023
@thecoop thecoop added :Analytics/Geo Indexing, search aggregations of geo points and shapes and removed needs:triage Requires assignment of a team area label labels May 11, 2023
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-analytics-geo (Team:Analytics)

@elasticsearchmachine elasticsearchmachine added the Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo) label May 11, 2023
@craigtaverner
Copy link
Contributor

There are two solutions to this:

The second option is a better option for a few reasons:

  • JTS is already geared towards simplifying full-geometries, is suitable for simplifications based on resolution/level of detail, and is a well tried and tested solution
  • The new algorithm is focused on streaming data, only limits to total point count (not resolution or level of detail) and is a new algorithm, not well tried and tested.
  • JTS is used in MVT, and so is already use for similar kibana visualizations

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Analytics/Geo Indexing, search aggregations of geo points and shapes >enhancement Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo)
Projects
None yet
Development

No branches or pull requests

4 participants