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

Allow altitude to be encoded

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

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

評価

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

調査の方向性

まず、現在のベクタータイル仕様と、3Dソリッドに関するリンク先の議論を確認します。コマンドのセマンティクス、高度の境界、およびタイル解像度とレイヤーのextentとの相互作用を解決してください。仕様に合意済みで曖昧さのない2.5D設計が定められれば完了です。

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

説明

Ultimately including 3D solids is what I would like however that is a complex issue that may confuse the specification or probably should be its own specification. See issues here: https://3d.bk.tudelft.nl/hledoux/blog/your-solids-the-same/

An intermediate step to provide 2.5D could be to allow 2 more commands and an altitude parameter

Command Id Parameters Parameter Count
MoveTo 1 dX, dY 2
LineTo 2 dX, dY 2
MoveTo3 5 dX, dY, dAltitude 3
LineTo3 6 dX, dY, dAltitude 3
ClosePath 7 No parameters 0
Example Command Integers
Command ID Count CommandInteger Binary Representation [Count][Id]
MoveTo 1 1 9 [00000000 00000000 0000000 00001][001]
MoveTo 1 120 961 [00000000 00000000 0000011 11000][001]
LineTo 2 1 10 [00000000 00000000 0000000 00001][010]
LineTo 2 3 26 [00000000 00000000 0000000 00011][010]
MoveTo3 5 1 13 [00000000 00000000 0000000 00001][101]
MoveTo3 5 120 965 [00000000 00000000 0000011 11000][101]
LineTo3 6 1 14 [00000000 00000000 0000000 00001][110]
LineTo3 6 3 30 [00000000 00000000 0000000 00011][110]
ClosePath 7 1 15 [00000000 00000000 0000000 00001][111]

Calling it altitude hopefully conveys the intent to provide 2.5D for simplicity. The MoveTo3 and LineTo3 work the same as the corresponding MoveTo and LineTo.

This also maps to the TopoJson and GeoJson allowing an altitude to be defined in their coordinates specification.

The remaining problem is around specifying the bounds for the altitude and the extent. As the tiles won't stack. One option is to interpret the value using the tile resolution and the existing layer extent field. Values will be positive and negative.

Hopefully this will trigger some discussion :)

主要言語
言語のデータがありません
スター
1k
フォーク
213
PR マージ指標
30日以内にマージされた PR はありません

環境構築

はじめの一歩

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

mapbox/vector-tile-spec のほかの issue

mapbox/vector-tile-spec の issue をすべて見る

似ている issue

Documentation の issue をもっと見る

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

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