Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Great Circles break in some cases

オープン
#171 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
45/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
python

調査の方向性

drawgreatcircle関数から始め、Robin投影と例の座標を使って問題を再現します。max_distがどのように計算され、経路のジャンプがどのように検出されるかを調べます。このケースで大円経路の中央部分が切り詰められたり誤ったジャンプが発生したりせずにレンダリングされれば完了です。

索引モデルが issue の本文から書いたものです。

説明

Due to the fix implemented for great circles getting cut off when intersecting map edges, (commit # 35b9207b5ac167f89378a74fc3bd7e8a70e83ae0) in certain cases, for some projections, the middle of the routes are truncated.

Example:

    map_projection = bmp.Basemap(projection='robin', lat_0=0, lon_0=0, resolution='c')
    lat1, lon1 = (51, 5)
    lat2, lon2 = (61, -150)
    map_projection.drawgreatcircle(lon1, lat1, lon2, lat2)

The obvious fix is to increase the multiplier for max_dist when it is calculated in the function, (max_dist = 1000 * del_s * 2) from 2 to, in this case, 5. Without increasing it greatly, the problem will appear for routes near enough the poles in this projection, or could cause actual jumps not to be found.

Alternatively, the decision could be based on whether the difference is much larger than the previous difference; I will try to implement this and submit the fix.

主要言語
Python
スター
818
フォーク
395
PR マージ指標
30日以内にマージされた PR はありません

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

matplotlib/basemap のほかの issue

matplotlib/basemap の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。