Skip to content
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

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

Open
SohaibKatariwala opened this issue Jul 30, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@SohaibKatariwala
Copy link

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

@SohaibKatariwala SohaibKatariwala added bug Something isn't working untriaged labels Jul 30, 2024
@dblock dblock removed the untriaged label Aug 19, 2024
@dblock
Copy link
Member

dblock commented Aug 19, 2024

Catch All Triage - 1, 2, 3

@heemin32 Is there a triage meeting for this repo? Please work with @krisfreedain to set one up.

@heemin32
Copy link
Collaborator

@vamshin?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants