Skip to content
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

Flag unsquare buildings #6215

Closed
quincylvania opened this issue Apr 22, 2019 · 4 comments · Fixed by #6234
Closed

Flag unsquare buildings #6215

quincylvania opened this issue Apr 22, 2019 · 4 comments · Fixed by #6234
Assignees
Labels
validation An issue with the validation or Q/A code
Milestone

Comments

@quincylvania
Copy link
Collaborator

If new users skip the tutorial, then they may not know how to square buildings (this was me when I first started mapping 😆). At its worst, this lack of knowledge can result in hundreds of unsquare buildings from mappers with good intentions.

Screenshot 2019-04-19 13 21 01

As a hint, we should warn users when their buildings aren't square and include a quick fix to instantly run the orthogonalize operation. We already have code to check if a path is mostly square or not.

This has been proposed before (#3130, #3673, #2624), but to avoid historical baggage I'm creating a new, singular issue to target a warning in iD's modern validation system. We can now do things that weren't possible before or may not have made sense at the time.

@quincylvania quincylvania added the validation An issue with the validation or Q/A code label Apr 22, 2019
@bhousel
Copy link
Member

bhousel commented Apr 23, 2019

Awesome, we have wanted this for a while 👍

@tordans
Copy link
Collaborator

tordans commented Apr 23, 2019

That will be great. Even though hopefully the "create a squared building tool" of the new toolbar will make it not-needed in the future.

I wonder, would this create an "infinite squaring loop" like #6226?

@tordans
Copy link
Collaborator

tordans commented Apr 24, 2019

I wonder, would this create an "infinite squaring loop" like #6226?

I tested (Map) and can say: Yes, it does create the loop. My my test I was able to iterate long enough to make both buildings square, which of course removed the warning. I still wonder if the warning should only apply to non-connected buildings to work around this. In dense cities the will likely create a domino effect of warnings and slightly changed geometries.

@bhousel bhousel added this to the 2.15.0 milestone Apr 24, 2019
@quincylvania
Copy link
Collaborator Author

quincylvania commented Apr 24, 2019

@tordans Thanks for testing that. The validation isn't perfect yet and we're still thinking of ways to make it better. Ignoring connected buildings might work. We're also considering ignoring buildings with more than some maximum number of nodes (7-15 somewhere), since they're more likely to be intentionally drawn non-squared.

I'm fine with being conservative around flagging since the main point of the validation is to help new users (who skipped the tutorial) realize they should be squaring things, not to detect everything that could be squared. We can flag more things if eventually we build more accurate "unsquare" detection and stronger resolution tools like #6226.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
validation An issue with the validation or Q/A code
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants