-
Couldn't load subscription status.
- Fork 25.6k
Closed
Labels
:Analytics/GeoIndexing, search aggregations of geo points and shapesIndexing, search aggregations of geo points and shapes>docsGeneral docs changesGeneral docs changesTeam:AnalyticsMeta label for analytical engine team (ESQL/Aggs/Geo)Meta label for analytical engine team (ESQL/Aggs/Geo)Team:DocsMeta label for docs teamMeta label for docs team
Description
Elasticsearch Version
7.16.2
Installed Plugins
No response
Java Version
openjdk version "1.8.0_292"
OS Version
Darwin Kernel Version 20.6.0
Problem Description
I'm using ES 7.16.2 and trying to capture New Zealand and having a horrible time of it.
This query does not capture NZ no matter the combinations of orientation values that I use.
POST /geo-test/_doc
{
"location" : {
"type" : "polygon",
"coordinates" : [
[
[-175.1235077, -28.8773225],
[165.7437641, -28.8773225],
[165.7437641, -52.7224663],
[-175.1235077, -52.7224663],
[-175.1235077, -28.8773225]
]
]
}
}
The only way I can get it to work is by translating the negative longitudes by +360.
POST /geo-test/_doc
{
"location" : {
"type" : "polygon",
"coordinates" : [
[
[185.1235077, -28.8773225],
[165.7437641, -28.8773225],
[165.7437641, -52.7224663],
[185.1235077, -52.7224663],
[185.1235077, -28.8773225]
]
]
}
}
Is that the intended method?
Note: I am viewing these polygons in the Kibana Map viewer. I suppose the issue could be there or I just really don't understand what Orientation is supposed to be doing here.
Thanks!
Steps to Reproduce
Create index:
PUT /geo-test
{
"mappings":{
"properties": {
"location": {
"type": "geo_shape"
}
}
}
}
Use the queries listed above
View in Kibana Map viewer
Logs (if relevant)
No response
Metadata
Metadata
Assignees
Labels
:Analytics/GeoIndexing, search aggregations of geo points and shapesIndexing, search aggregations of geo points and shapes>docsGeneral docs changesGeneral docs changesTeam:AnalyticsMeta label for analytical engine team (ESQL/Aggs/Geo)Meta label for analytical engine team (ESQL/Aggs/Geo)Team:DocsMeta label for docs teamMeta label for docs team