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

Warn if feature mismatches because of geometry #6319

Closed
matkoniecz opened this issue May 5, 2019 · 9 comments
Closed

Warn if feature mismatches because of geometry #6319

matkoniecz opened this issue May 5, 2019 · 9 comments
Assignees
Labels
validation An issue with the validation or Q/A code
Milestone

Comments

@matkoniecz
Copy link
Contributor

matkoniecz commented May 5, 2019

Currently amenity=bank node used as a building corner is neither treated as a bank nor triggering a validator warning. Currently it results in a bit confusing handling of this situation.

Given that tagging is dubious second is probably preferable.

See https://www.openstreetmap.org/edit?editor=id&node=2065667950#map=19/36.70793/4.03434

Selection_007

Note difference between BNP Paribas bank and Société Générale bank (displayed with a black dot icon).

Obviously, most of features are unsuitable to be used on a nodes of a building area - banks are not unique and warning may be more general.

@bhousel bhousel changed the title warn about amenity=bank node used as a building corner Warn if feature mismatches because of geometry May 5, 2019
@bhousel
Copy link
Member

bhousel commented May 5, 2019

Yes, I agree it would be good to warn about situations like this.

@bhousel bhousel added the validation An issue with the validation or Q/A code label May 5, 2019
@quincylvania
Copy link
Collaborator

I'm thinking we can make this validation part of "Lines Tagged as Areas" and give it a better name like "Mismatched Geometry".

@quincylvania
Copy link
Collaborator

I'm thinking we can make this validation part of "Lines Tagged as Areas" and give it a better name like "Mismatched Geometry".

I did this and added warnings for both points-as-vertices and vertices-as-points.

Screen Shot 2019-09-26 at 10 53 31 AM

Screen Shot 2019-09-26 at 10 53 44 AM

@tordans
Copy link
Collaborator

tordans commented Sep 28, 2019

@quincylvania this looks great.

I wonder, might this be a case for the "Extract" Action as a second link-action (next to the "Ignore this issue")?

From the initial example by matkoniecz at https://preview.ideditor.com/master/#background=Maxar-Premium&disable_features=boundaries&locale=en&map=19.00/36.70793/4.03434&node=2065667950 the extract would be a good way to solve the issue.

Bildschirmfoto 2019-09-28 um 16 33 06

@quincylvania
Copy link
Collaborator

I wonder, might this be a case for the "Extract" Action as a second link-action (next to the "Ignore this issue")?

Yep, good suggestion. This is followup work.

@quincylvania
Copy link
Collaborator

quincylvania commented Oct 1, 2019

I wonder, might this be a case for the "Extract" Action as a second link-action (next to the "Ignore this issue")?

I added this. Makes for an easy fix!

extract fix demo

@Elefant-aus-Wuppertal
Copy link
Contributor

But what is, when the feature has the tags support=wall_mounted and location=outdoor, e. g. a veding machine like this https://www.openstreetmap.org/node/1261048099 ?

Isn't it allowed there to make this feature as a member of a building=*-way? I don't understand why it should not. You can add location=outdoor to denote that the feature isn't in the building.

@quincylvania
Copy link
Collaborator

@Lukas458 These warnings are based on preset tags. If you're seeing an erroneous warning then we can consider updating the geometry types allowed for the preset in question.

@Elefant-aus-Wuppertal
Copy link
Contributor

@Lukas458 These warnings are based on preset tags. If you're seeing an erroneous warning then we can consider updating the geometry types allowed for the preset in question.

Yes, i think that's what I'd be fine with. I understand sense of those warnings for some presets but still not for vending machines.

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

No branches or pull requests

5 participants