openstreetmap/iD

coastline: check for correct orientation

オープン

#9,292 opened on 2022/09/12

 (1 件のコメント) (0 件のリアクション) (0 人の担当者)JavaScript (1,449 件のフォーク)github user discovery
help wantedvalidation

Repository metrics

Stars
 (3,818 個のスター)
PR merge metrics
 (平均マージ 29d 14h) (30d で 82 merged PRs)

説明

For simple closed ways: Winding order should follow "right hand rule" (i.e. land is on the left side of the direction of the way)

For non-closed ways: The direction of the way should be the same as any adjacent coastline ways.1

From the wiki:

The direction the ways are drawn is very important! They must be drawn so that the land is on the left side and water on the right side of the way (when viewing in the direction of the way arrows). If you regard this as tracing around an area of land, e.g., an island, then the coastline way should be running counterclockwise.

Footnotes

  1. This can only be checked for if any adjacent coastline ways are loaded which might not always be the case.

コントリビューターガイド