Expose `intermittent` on water polygons

Đang mở Phù hợp với người mới
#647 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
68/100
Loại issue
Tính năng
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
java
Lĩnh vực
data

Hướng nghiên cứu

Bắt đầu từ Water.java, trong nhánh xử lý đa giác, nơi kind, kind_detail, sort_rank và các thuộc tính bridge, tunnel, layer ở z14 được gán. Hãy đọc cách các thuộc tính này được xuất bằng setAttrWithMinzoom và thêm intermittent dưới dạng boolean, ánh xạ yes thành true, ở mức zoom mà issue gợi ý. Hoàn thành khi một đa giác nước được gắn intermittent=yes tạo ra thuộc tính trong các tile đầu ra; bạn có thể kiểm tra bằng cách tạo một đoạn trích nhỏ có chứa way/352498962.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.

Ngôn ngữ chính
Java
Star
779
Fork
111
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của protomaps/basemaps

Tất cả issue của protomaps/basemaps

Issue tương tự

Thêm issue về Java

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.