-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When squaring a very circular / spiky object it is deleted #10641
Comments
Hello @tyrasd @danieldegroot2 @k-yle, I’ve been looking into Issue #10641 regarding circular/spiky objects being deleted when attempting to square them. After reviewing the code in Proposal
Request for Assignment
If you have any specific requirements or thoughts on approach, I’d love to hear them. Otherwise, I’ll proceed with this plan and submit a PR for review shortly. Thanks for! |
Hey @tyrasd @danieldegroot2 @k-yle ! Quick question on the spiky/circular squaring issue:
Let me know which approach you prefer, and I’ll proceed accordingly. Thanks! |
I would prefer the bbox as a fall back than nothing happening. For the circle case the bbox will be a good result. For the spike object not that ideal but also better than not changing it. |
This option would be more consistent with the existing behaviour, where the squaring is not available if the shape is not "squareable" |
URL
https://www.openstreetmap.org/edit#map=18/52.527151/-7.578765
How to reproduce the issue?
https://www.openstreetmap.org/way/1018870625
Go to 'Edit' => Right click on this object => Square
Squaring is possible while this object is very circular and has many nodes
This results in the object being deleted, likely due to incorrect calculation / geometry
Do not allow the user to delete the object by squaring/circularizing, or disable squaring (not circularizing) if it is too circular and/or resolve the calculatioin for squaring such a circle.
Similarly, a node on the circle outline can be squared. However(, of course), nothing happens
In Rapid, nothing happens when squaring the circle itself. Something probably happens, but there are zero changes -object is not deleted either- and the square option stays available afterwards.
Could not find an associated issue ticket, so this might be a more recent bug than when rapid started.
Screenshot(s) or anything else?
Also happens with very spiky object (when node is moved in far enough); this can be easily reproduced
Also here, but only highlighted node is deleted
Here it is also possible to square but nothing happens, no nodes are visibly moved or deleted.
Which deployed environments do you see the issue in?
Released version at openstreetmap.org/edit, Development version at ideditor.netlify.app, RapiD version at mapwith.ai/rapid
What version numbers does this issue effect?
2.30.4, 2.31.0-dev, perhaps not Rapid 2.5.0
Which browsers are you seeing this problem on?
Chrome
The text was updated successfully, but these errors were encountered: