OpenStreetMap 로고 OpenStreetMap

Cleaning up data by properties using Overpass and JOSM

PlaneMad님이 English로 2016년 6월 24일에 게시함.

The problem

A new user accidently added addr:city and addr:province tags to a large selection of objects, including rivers and individual nodes.

screenshot 2016-06-24 13 58 54
Changeset | Diff

The user mentioned that the tags were intended only for buildings, so thought I would document the cleanup for future efforts like this.

Finding all the problematic data using Overpass

It is possible to extract all objects with addr:city added by the particular user using this Overpass query.

screenshot 2016-06-24 14 05 28
Resulting features

This data can be exported into JOSM via remote control for further inspection and cleanup.

Fixing data in JOSM

Once all the data is loaded, we need to select only those objects or features that have been incorrectly tagged with the addr:city and addr:province. Since we know that the tags are valid on building ways, we will use a filter to select such tags on anything that is not a building way. We can use the find dialog (ctrl+F or cmd+F) to look for exactly this.

screenshot 2016-06-24 14 14 24
Find all objects tagged with addr:city and not a building

This selected 3,989 objects from which the tag can be deleted. Just select and delete the tags.

As a bonus got to also cleanup duplicate nodes using the validator. screenshot 2016-06-24 14 20 12

Upload with a descriptive changeset comment and all done!

위치: Kaunlaran 2 Village, Molino, Bacoor, Cavite, Calabarzon, 4102, Philippines
이메일 아이콘 Bluesky 아이콘 Facebook 아이콘 LinkedIn 아이콘 마스토돈 아이콘 텔레그램 아이콘 X 아이콘

토론

2016년 6월 24일 11:07Zverik님의 의견

Actually, addr:city tag can be found on address points: nodes without any tags besides addr:*. These are pretty common in Europe and a lot of other countries where detailed imagery for tracing building is not available.

2016년 6월 24일 12:50manings님의 의견

This is obviously wrong in the Philippines. Thanks for fixing @planemad!

2016년 6월 26일 07:45jssulapas님의 의견

This is very helpful. Thanks for saving me!

댓글을 남기려면 로그인하세요