keplergl / keplergl/kepler.gl

Trips or polygons do not cross the Pacific Ocean

Open
#1,438 1 comment 0 reactions 1 assignee View on GitHub

@heshan0131 is already working on this.

Since Mar 19, 2021.

bug
Dominant language
TypeScript
Stars
12k
Forks
2k
Avg merge
1d 5h
Merged PRs (30d)
66

Description

**Describe the bug**
Trips and Polygons do not cross the Pacific Ocean unlike lines and arcs do.

**To Reproduce**
Steps to reproduce the behavior:
1. Load the following JSON
2. `{
"type": "FeatureCollection",
"features": [
{
"type": "Feature",
"properties": {
"OriginLat": 30.03833389,
"OriginLon": -93.33233643,
"DestinationLat": 35.39916611,
"DestinationLon": 139.6341705,
"Flow": 558598.9567309718
},
"geometry": {
"type": "LineString",
"coordinates": [
[
-93.3323364,
30.0383339,
0,
1615819842
],
[
-93.3296556,
30.0378151,
0,
1615819842
],
[
-93.3487333,
29.8275667,
0,
1615819842
],
[
-93.3472669,
29.807172,
0,
1615819842
],
[
-93.3469834,
29.8011255,
0,
1615819842
],
[
-93.3467257,
29.7940445,
0,
1615819842
],
[
-93.3450833,
29.76775,
0,
1615819842
],
[
-93.3212333,
29.62595,
0,
1615819842
],
[
-93.2273333,
29.5214667,
0,
1615819842
],
[
-93.2250667,
29.5167,
0,
1615819842
],
[
-93.2233333,
29.4566667,
0,
1615819842
],
[
-93.2083333,
28.6066667,
0,
1615819842
],
[
-92.895,
28.2233333,
0,
1615819842
],
[
-92.575,
27.855,
0,
1615819842
],
[
-92.2272019,
27.5825558,
0,
1615819842
],
[
-89.8416667,
25.9133333,
0,
1615819842
],
[
-87.295,
24.1083333,
0,
1615819842
],
[
-85.1333333,
21.4666667,
0,
1615819842
],
[
-80.1516667,
16.7733333,
0,
1615819842
],
[
-79.5683333,
15.9483333,
0,
1615819842
],
[
-79.8730565,
9.5644767,
0,
1615819842
],
[
-79.9191667,
9.4386667,
0,
1615819842
],
[
-79.9191667,
9.40895,
0,
1615819842
],
[
-79.9191667,
9.3883333,
0,
1615819842
],
[
-79.9193167,
9.3582833,
0,
1615819842
],
[
-79.9193833,
9.34405,
0,
1615819842
],
[
-79.9195833,
9.29905,
0,
1615819842
],
[
-79.9242167,
9.26615,
0,
1615819842
],
[
-79.9246667,
9.2111667,
0,
1615819842
],
[
-79.8682,
9.1792,
0,
1615819842
],
[
-79.8453833,
9.1858667,
0,
1615819842
],
[
-79.8141667,
9.1596833,
0,
1615819842
],
[
-79.8054,
9.1204,
0,
1615819842
],
[
-79.7694833,
9.11295,
0,
1615819842
],
[
-79.7579167,
9.1201833,
0,
1615819842
],
[
-79.7481333,
9.1222667,
0,
1615819842
],
[
-79.7024167,
9.1146,
0,
1615819842
],
[
-79.69085,
9.1074667,
0,
1615819842
],
[
-79.6775667,
9.0836,
0,
1615819842
],
[
-79.6720167,
9.0688167,
0,
1615819842
],
[
-79.6687167,
9.0646333,
0,
1615819842
],
[
-79.6573167,
9.0571667,
0,
1615819842
],
[
-79.6447167,
9.0393833,
0,
1615819842
],
[
-79.63115,
9.02875,
0,
1615819842
],
[
-79.6192333,
9.0224333,
0,
1615819842
],
[
-79.6136833,
9.0175833,
0,
1615819842
],
[
-79.6081833,
9.0125,
0,
1615819842
],
[
-79.5971333,
9.0018333,
0,
1615819842
],
[
-79.5919333,
8.9965667,
0,
1615819842
],
[
-79.5878,
8.9923333,
0,
1615819842
],
[
-79.5828,
8.9868167,
0,
1615819842
],
[
-79.575,
8.965,
0,
1615819842
],
[
-79.5708333,
8.9533333,
0,
1615819842
],
[
-79.5683333,
8.9475,
0,
1615819842
],
[
-79.5183333,
8.885,
0,
1615819842
],
[
-79.4737961,
8.8320279,
0,
1615819842
],
[
-79.4597429,
8.7383347,
0,
1615819842
],
[
-79.45,
8.5833333,
0,
1615819842
],
[
-79.45,
7.75,
0,
1615819842
],
[
-80.1668201,
7.0302018,
0,
1615819842
],
[
-80.2321635,
6.9666667,
0,
1615819842
],
[
-80.45,
6.9666667,
0,
1615819842
],
[
-81.75,
6.9666667,
0,
1615819842
],
[
-81.8333333,
6.9666667,
0,
1615819842
],
[
-83.9,
8.1,
0,
1615819842
],
[
-85.8816667,
9.7016667,
0,
1615819842
],
[
-87.075,
10.3233333,
0,
1615819842
],
[
-88.7483333,
10.855,
0,
1615819842
],
[
-101.4283333,
16.7966667,
0,
1615819842
],
[
-111.82,
23.3066667,
0,
1615819842
],
[
140.045,
34.745,
0,
1615819842
],
[
139.798,
34.8344,
0,
1615819842
],
[
139.6866667,
34.9116667,
0,
1615819842
],
[
139.6866667,
34.975,
0,
1615819842
],
[
139.7566667,
35.0866667,
0,
1615819842
],
[
139.78,
35.175,
0,
1615819842
],
[
139.7816667,
35.2116667,
0,
1615819842
],
[
139.7816667,
35.2566667,
0,
1615819842
],
[
139.73,
35.3166667,
0,
1615819842
],
[
139.7251485,
35.3225589,
0,
1615819842
],
[
139.7186327,
35.3303829,
0,
1615819842
],
[
139.7105875,
35.3558515,
0,
1615819842
],
[
139.6966667,
35.37,
0,
1615819842
],
[
139.6935458,
35.3812217,
0,
1615819842
],
[
139.665,
35.4,
0,
1615819842
],
[
139.6341667,
35.3991667,
0,
1615819842
]
]
}
}
]
}
`

**Expected behavior**
I expect the trip to take the shortest path available between two points whether they cross the Pacific or not

**Screenshots**
![image](https://user-images.githubusercontent.com/45899379/111176252-73945400-85a9-11eb-8fbe-66b7ece3e017.png)

**Desktop (please complete the following information):**
- Reproduced on Windows 10 via Kepler for Jupyter
- Reproduced on demo link https://kepler.gl/demo

**Additional context**
I am trying to represent shipping patterns. Even if I add more points in the Pacific, I still get the problem

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.