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

Integer values for attributes

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

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

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
25/100
issue の種類
機能追加
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
python
領域
data

調査の方向性

この issue ではファイル、テスト、エントリポイントが指定されていないため、まず変数からバンドへのマッピングと、現在の -b <var name> <band no> オプションの処理を追跡します。出力属性がどのようにエンコードされているかを確認し、提案されている 2 つの精度アプローチを比較します。issue ではアプローチが選択されておらず、期待される動作も指定されていないため、完了条件は定義されていません。

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

説明

Using integers for most output attributes might reduce vector tile file size in a number of ways. First off, an integer in and of itself is stored more efficiently than other, higher precision formats. Secondly, @yhahn indicated in conversation that if attributes are repeated across features within a vt, that value is effectively only stored once.

I see two ways to handle this:

  1. Always force integers. Downside of this is attributes with actual higher precisions (eg a field that ranges from -1 to 1, as do many pixel indices). Of course, this could be handled by the user scaling these values before encoding, but.
  2. Build into the variable --> band mapping. Right now, to specifically map a band, we pass an option like so:
    -b <var name> <band no>
    We could easily make this into:
    -b <var name> <band no> <precision>

cc @ian29 @MateoV

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

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

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

mapbox/make-surface のほかの issue

mapbox/make-surface の issue をすべて見る

似ている issue

Python の issue をもっと見る

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

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