-
-
Notifications
You must be signed in to change notification settings - Fork 359
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
Remove buildings from AddHousenumber if addressed entrance exists #885
Comments
This is already the case since the quest was first implemented. |
Here was added a housenumber: https://www.openstreetmap.org/changeset/56437830 |
Hmm, I cannot explain why this wasn't excluded then. I will investigate. |
For the initial building you linked, the quest does not show up. It would be a great help to reproduce this issue if someone could find an example where the quest shows up. Edit: I went through the code again and I can't see anything wrong there. Help in finding another example of a wrongly shown quest is highly appreciated. Perhaps we could also remove the housenumber from the building mentioned by @britiger again to hopefully be able to reproduce this issue. @britiger do you think this is OK? |
I'm just guessing, but maybe the problem is, that the entrace-node is not ony part of the building but also of the parking lot in the east. |
That should not be a problem. StreetComplete does a point-in-polygon (or outline) check. |
So I removed the address information from the building to reproduce this issue, but I can't reproduce it. The housenumber quest does not show for that building. |
I've found a example in my 4.0 beta2: Have a quest for: https://www.openstreetmap.org/way/26242308 |
It may or may not be related but I opened this are in edit mode and this building is invisible in iD, but it appears in current overpass querries - see http://overpass-turbo.eu/s/wmM Maybe it is viable to blame it on a database corruption that occurred as you fetched quests, and that it is an overpass bug - not a SC bug? |
It isn't invisible for me in iD. But with my StreetComplete installation (v4.0-beta2), I can not reproduce it. The quest is not shown: So, of course StreetComplete trusts Overpass in that it will get all the elements it asked for. Right now, the only possibility how I see this could happen is if Overpass did not return all the address-nodes as response to the query. |
Now it is OK also for me. |
I only had the building I mentioned as quest. After reload quests in this area I now have the two building of your screenshot. May it was some cached data, how long does the app hold data in cache? I've reloaded the data in an area in Potsdam before I took the screenshot. But using the history of both objects I've seen that the building including the node within the building was added in 2015. You have mentioned that the check exists in first implementation. Very curious bug. |
Now I've found a second building nearby: https://www.openstreetmap.org/way/397490707 After searching for new quests it's also gone away like the first building. So I think it is a problem with my cache. But I can reproduce the error:
|
I don't understand. How can the quest for the building be visible after you cleared all data for the application but before loading new quests is finished? Edit: The linked way https://www.openstreetmap.org/way/397490707 also has an interesting changeset message "Hunderte von doppelten Hausnummern. Offenbar ein StreetComplete-Problem, welches die vorhandenen Nummern nicht erkennt". So, the problem turned up already 5 months ago, but was not reported. :-( |
I've checked it on a second device with fresh installed app and on the first again.
I've take screenrecord: https://streamable.com/hvonc I also used Android Studio to capture some logs while verify the behaviour on second device:
EDIT: Changed Video URL |
https://www.youtube.com/watch?v=9ZEcZUiZCdY&feature=youtu.be has been deleted, because it violates YouTube's TOS. 🙄 Try https://streamable.com/ if the video is short enough. |
I don't know why I was block but now I uploaded it here: https://streamable.com/hvonc |
I've got it. The log was the part that helped :-) |
Does anyone know if it is possible somehow to filter a result set in Overpass? I.e. to return all nodes of a building that have an This does not work:
|
Nevermind, I got it
(Returns all buildings that have no address nodes on their outline, even if the address node itself is not inside the bbox) |
- exclude underground buildings from query (#907) - exclude buildings with an address node within or on the outline, even if this node is outside of the to-be-downloaded bounding box (#885) - already exclude buildings with an address node on their outline using a more complex overpass query, substantially increasing performance - add integration tests for all the cases in which buildings should be excluded
It would be helpful to remove buildings from AddHousenumber-Quest if the buildung already have several addresses as Nodes on the way of the Building. Mostly they are mapped as entrance=* with complete addr:= Some buildings have doors to different streets with different names of the streets. If you have blocks of flats, sometime with entrance on backside or anywhere else it is usefull to put the address not on the complete building.
Sample: https://www.openstreetmap.org/way/48916730
The text was updated successfully, but these errors were encountered: