Skip to content

[BUG] - Cannot render geo_shape of type Geometrycollection on opensearch maps #646

@SohaibKatariwala

Description

@SohaibKatariwala

What is the bug?

I am able to render geo_shape of types point, linestring, polygon, multipoint, multilinestring, and MultiPolygon. But geo_shape of type Geometrycollection or envelope does not show up on maps.

How can one reproduce the bug?

PUT /my-geoindex
{
"mappings": {
"properties": {
"locations": { "type": "geo_shape" }
}
}
}

PUT /my-geoindex/_doc/1
{
"location": {
"geometries": [
{
"coordinates": [
0.407293,
52.745262
],
"type": "Point"
},
{
"coordinates": [
[
0.407293,
52.745262
],
[
20.407762,
52.746998
]
],
"type": "LineString"
}
],
"type": "GeometryCollection"
}
}

  • Create index pattern "my-geoindex*"

  • Add new layer on map with this index pattern and select location field.

  • Does not show anything on map.

  • Add another document that is a polygon for example, and it does show up on the map.
    PUT my-geoindex/_doc/3
    {
    "location" : {
    "type" : "polygon",
    "coordinates" : [
    [
    [74.0060, 40.7128],
    [73.7562, 42.6526],
    [71.0589, 42.3601],
    [74.0060, 40.7128]
    ]
    ]
    }
    }

What is the expected behavior?

I an expecting the geometries in a geometry collection to redender on the map.

What is your host/environment?

AOS v2.13

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions