Expose `intermittent` on water polygons

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

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

評価

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

調査の方向性

Water.java のポリゴン分岐から始めてください。ここでは kind、kind_detail、sort_rank と、z14 の bridge、tunnel、layer 属性が設定されています。setAttrWithMinzoom でこれらの属性がどのように出力されているかを確認し、issue が提案するズームレベルで、intermittent を真偽値として追加してください。yes は true に対応させます。intermittent=yes のタグが付いた水域ポリゴンが出力タイルに属性を生成すれば完了です。way/352498962 を含む小さな抽出データを生成して確認できます。

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

説明

What

The water layer drops intermittent=*. Polygons only carry kind, kind_detail, sort_rank and, from z14, bridge, tunnel and layer (Water.java, polygon branch). A style therefore cannot tell a permanent lake from an area that only floods now and then.

Example

way/352498962 at the Leine weir in Hannover-Limmer is a flood spillway: natural=water, water=canal, usage=spillway, intermittent=yes. It is correctly tagged (usage=spillway) and dry almost all year. Footpaths and scrub are mapped across it. The Protomaps basemap renders it as solid water, so the paths seem to run through a lake. OSM Carto hatches it instead. Re-tagging it would be tagging for the renderer, which the mapper rightly declined.

The same applies to dry basins, seasonal lakes and intermittent reservoirs.

Proposal

Add intermittent (boolean, yes → true) to water polygons, the same way as bridge/tunnel/layer, e.g. via setAttrWithMinzoom from z12 or z14. Styles could then draw these areas hatched or lighter. The default style could do so too, but just exposing the attribute would already help.

Happy to test a build against our area.

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

環境構築

はじめの一歩

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

protomaps/basemaps のほかの issue

protomaps/basemaps の issue をすべて見る

似ている issue

Java の issue をもっと見る

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

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