MapColonies / MapColonies/GpkgMerger
Mixed tile format doesn't work for S3 and FS
まだ誰も着手していません。
- 主要言語
- C#
- スター
- 1
- フォーク
- 2
- 平均マージ
- 21分
- マージ済み PR(30日)
- 1
説明
Describe the bug
When working with files, the merger uses file extension with no regard to existing file extension. This means that if a PNG file is merged with a new JPEG resulting in a full tile (JPEG) then it will be stored and both files would exist (for the same x,y,z).
To Reproduce
- Hold a tile with transparency in FS or S3
- Update with a tile that should result in a tile with no transparency
- New tile is written next to the existing tile
Expected behavior
Only the new calculated tile should exist.
Additional context
To combat this mapproxy uses .mixed extension, this way at the end the correct data would be placed. This is because the file extension isn't needed for discovering the tile format (can be understood from tile data).
If we implement the same strategy then we will be able to use mixed format with Mapproxy serving as well.
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
まず、タイルを FS と S3 に書き込む merger のパスを特定し、次に PNG と JPEG のデータを結合したときに出力ファイルの拡張子がどのように選択されるかを追跡します。issue にある透明から非透明になるシナリオを再現します。新しく計算されたタイルが既存のタイルを置き換え、両方の拡張子を残さず、かつ MapProxy による serving との互換性を維持できれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- csharp
- 領域
- backend, cloud
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 42/100