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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove downranking building=house entry #1167

Closed
wants to merge 1 commit into from

Conversation

matkoniecz
Copy link
Contributor

No description provided.

@matkoniecz
Copy link
Contributor Author

see #1155 (comment)

@matkoniecz
Copy link
Contributor Author

Not sure why this downranking was added and what it solved.

Copy link

馃嵄 You can preview the tagging presets of this pull request here.

@matkoniecz
Copy link
Contributor Author

matkoniecz commented Mar 18, 2024

@DujaOSM It fixes what you reported but tracking down why downranking was added could be useful. Maybe there was a good reason for that?

Note that it was added when id presets were in the https://github.com/openstreetmap/iD repository.

@bhousel
Copy link
Member

bhousel commented Mar 18, 2024

All buildings presets have "matchScore": 0.5 and have had it for a long time.

This is because in OSM (unfortunately) buildings tags are often combined with more interesting tags, and the preset system is expected to match the more interesting tag.

For example building=house+craft=plumber

@matkoniecz
Copy link
Contributor Author

Oh right, that would make sense. Would

"matchScore": 0.99

be still a viable workaround for this bad tagging style while not hiding House and similar values too much?

@matkoniecz matkoniecz marked this pull request as draft March 18, 2024 13:03
@DujaOSM
Copy link

DujaOSM commented Mar 18, 2024

Wow that was quick...
For specifically residential buildings (house, detached, residential, apartments), I don't see a reason to downgrade matchScore (much), since those are most commonly used standalone. However, apart from the name, I do not know how exactly matchScore is used: if it only affects string matching, I don't see why we would downgrade it when matching "hou" or "res"...

By the way, the common preset "residential area" also seems to suffer from the same disease...

@bhousel
Copy link
Member

bhousel commented Mar 18, 2024

Off the top of my head, I don't know what will happen.
If you change the matchScores around without understanding what they do, you can probably expect some surprising preset matching behavior.

Yes, you might get "House" to rank higher on the list before "Houseware Store", but you wouldn't want "Church Building" match before "Church" or "Stadium Building" match before "Stadium". The building tags are weird.

Maybe a better solution would be to prioritize shorter names in the preset list, but I don't know how that would affect different languages.

@matkoniecz
Copy link
Contributor Author

As is it is not ready.

I will try to investigate more here (or in other iD preset area) once https://github.com/openstreetmap/id-tagging-schema/pulls/matkoniecz are processed

@matkoniecz matkoniecz closed this May 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants