openstreetmap/iD

"Follow" may create a self-intersecting area

開放

#9,154 建立於 2022年6月9日

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

倉庫指標

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

描述

URL

No response

How to reproduce the issue?

  1. Create a simple area, say a triangular one (the top one on the screenshot)
  2. Start creating another area nearby; snap its 2nd and 3rd vertices to the first area
  3. Hit [F] several times to "follow" the first area, i.e. create new common vertices. They go around and around the first area, effectively doing a "plastic wrap".
  4. Hit [Esc] to finish the second area. It succeeds.

Now, you've just created an odd, self-intersecting area that can be tagged and committed without a warning.

iD should detect this form of self-intersecting area and prevent executing step (3) or, at minimum, step (4) . Actually, it does complain if I want to complete the area against the topmost vertex, but not in the situation on the screenshot.

Screenshot(s) or anything else?

Selfintersecting

Which iD Editor versions do you see the issue on?

Released version at openstreetmap.org/edit

Which browsers are you seeing this problem on?

No response

貢獻者指南