openstreetmap/iD

coastline: check for correct orientation

開放

#9,292 建立於 2022年9月12日

 (1 則留言) (0 個反應) (0 位負責人)JavaScript (1,449 個分叉)github user discovery
help wantedvalidation

倉庫指標

星標
 (3,818 顆星)
PR 合併指標
 (平均合併 29天 14小時) (30 天內合併 82 個 PR)

描述

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.

貢獻者指南