Expose `intermittent` on water polygons

Aperta Adatta ai principianti
#647 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
68/100
Tipo di issue
Funzionalità
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
java
Ambito
data

Direzione di ricerca

Inizia da Water.java, nel ramo dei poligoni, dove vengono impostati kind, kind_detail, sort_rank e gli attributi bridge, tunnel e layer di z14. Leggi come questi attributi vengono emessi con setAttrWithMinzoom e aggiungi intermittent come booleano, mappando yes su true, allo zoom suggerito dalla issue. È completato quando un poligono d'acqua taggato intermittent=yes produce l'attributo nei tile di output, verificabile generando un piccolo estratto che includa way/352498962.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
Java
Stelle
779
Fork
111
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di protomaps/basemaps

Tutte le issue di protomaps/basemaps

Issue simili

Altre issue su Java

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.