gsak_to_opensak.py silently skips missing source zips without logging which codes

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

メンテナーはふだん 1 日以内に返信

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

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
80/100
issue の種類
機能追加
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
python
領域
data, tooling

調査の方向性

tools/boundaries/gsak_to_opensak.py から始めてください。_convert_countries、_convert_states、_convert_counties はそれぞれ、ソースの zip パスが None のとき missing カウンターを増やします。各パスでスキップされたコードをリストに集め、既存の "X zip(s) missing" の要約の横に出力するか(またはマニフェストに書き出すか)してください。states/ch.zip が欠けている状態で実行したとき、出力に ch が表示されれば完了です。

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

説明

area: geo-data good first issue improvement
Current State

tools/boundaries/gsak_to_opensak.py silently skips country/state/county packs when the corresponding source zip file isn't found on disk. The skip is only reflected in an aggregate count printed at the end (e.g. "2 zip(s) missing") — the specific country/pack codes that were skipped are never listed anywhere.

This came up in #788: Switzerland's state-level polygons were missing from the converted output, and the most likely cause was that states/ch.zip simply wasn't present in the gsak-dir at conversion time. But there was no way to know that from the tool's output — the gap only became visible months later when a user noticed blank state/county fields on Swiss caches.

Affected in _convert_countries, _convert_states, and _convert_counties — all three currently increment a missing counter on a None zip path without recording which code/pack triggered it.

Proposed Improvement

Collect skipped codes into a list per pass and print them (or write them to the manifest) alongside the existing "X missing" summary line.

Expected Benefits

When a source zip is missing, the tool should list the specific country/state/pack code(s) that were skipped (not just a total count), so gaps in source data are visible immediately after a conversion run rather than discovered later via a bug report.

主要言語
Python
スター
37
フォーク
17
平均マージ
21時間 5分
マージ済み PR(30日)
131

環境構築

はじめの一歩

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

OpenSAK-Org/OpenSAK のほかの issue

OpenSAK-Org/OpenSAK の issue をすべて見る

似ている issue

Python の issue をもっと見る

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

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