Enforce the GeoJSON polygon orientation in Vega Maps #122569
Labels
Feature:Maps
Feature:Vega
Vega visualizations
impact:medium
Addressing this issue will have a medium level of impact on the quality/strength of our product.
Team:Presentation
Presentation Team for Dashboard, Input Controls, and Canvas
v8.1.0
v8.2.0
Vega uses
d3-geo
to render GeoJSON features into a Map. Unfortunately the convention used by this library is to expect polygon rings to be clockwise (more details about the reasoning here). This convention is not followed by current GeoJSON IETF RFC7946 standard where polygons are expected to be counterclockwise:On the other hand, EMS is nowadays serving some datasets on different conventions, making them to work inconsistently in Kibana Vega Maps: example issue in EMS File Service: elastic/ems-file-service#231
The agreement in the aforementioned issue is to make EMS to follow the industry standard and make in 8.1 all datasets to follow RFC7946. If we don't do anything that would make none of them to work in Kibana Vega, so we need to implement a mechanism to "rewind" the data when being loaded, maybe using this library.
The text was updated successfully, but these errors were encountered: