Skip to content

geo-shape-doc-values centroid calculation should handle polygons as lines/points and lines as points #52303

Closed
@talevy

Description

@talevy
  • Polygons with no area should not be treated as polygons — they should be treated as lines.
  • Lines with no length should not be treated as lines — they should be treated as points.

possible solution A

This can be achieved by updating the DimensionalShapeType of the geometry for such geometries. The downside of this is that then we would love information about what type of geometry the field value was.

possible solution B

The other option is to keep the original DimensionalShapeType, and instead have a place-holder weight that is close to 0 for such geometries.

relates to #50834

Metadata

Metadata

Assignees

No one assigned

    Labels

    :Analytics/GeoIndexing, search aggregations of geo points and shapes>bugTeam:AnalyticsMeta label for analytical engine team (ESQL/Aggs/Geo)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions