OpenStreetMap 로고 OpenStreetMap

The Great DC Parking Lot Cleanup of 2013

Aaron Lidman님이 English로 2013년 6월 8일에 게시함.

I’ve been resolving OSM notes this past week and it’s been surprisingly engaging editing. I might try and sum up my pros/cons of the notes feature later but there was one particular problem that became a little project of its own that I want to explain a little more in depth here.

I came across notes by users didier2020 and jfire about parking lot duplicates in Washington DC. The problem was that some parking areas had multiple duplicate ways stacked on top of each other and shared the same nodes to define a single area. Because these areas were sharing the exact same features it’s pretty hard to spot the problem without specifically looking for it. Here’s what it looks like in JSOM:

When I first started on Didier’s note I spread out for a couple miles and kept finding the problem everywhere. Looking into the history of these ways it came back to an import of DC parking lots emacsen did in 2010. Here’s one of the changesets that make up the import: osm.org/browse/changeset/4118659. Now knowing that this affected all of DC I downloaded all the amenity=parking ways and checked it with JSOM’s validator. Here’s a recreation of what I saw (yellow is parking, red are duplicates):

JOSM’s validator can be a pretty great tool for solving lots of common problems but it can’t fix stuff like this on it’s own so I got started removing the duplicates from the top down. Once I got a reliable way of spotting them it was a simple process of keeping the cursor set to delete and clicking every way. Most only had one duplicate but many were stacked three or four high.

All in all it took about three hours, about 1,900 parking lots were deleted, the DC OSM file is a about 10mb smaller and there are now 6,166 parking lot ways in DC.

위치: Manor Park, Ward 4, Washington, District of Columbia, United States
이메일 아이콘 Bluesky 아이콘 Facebook 아이콘 LinkedIn 아이콘 마스토돈 아이콘 텔레그램 아이콘 X 아이콘

토론

2013년 6월 8일 16:24jremillard님의 의견

Good job Aaron! How did you only download just the amenity=parking and then edit in JOSM?

2013년 6월 8일 16:43Aaron Lidman님의 의견

thanks dcp I’ll look for more to fix.

jremillard, the mirrored_download plugin (osm.wiki/JOSM/Plugins/mirrored_download) lets you download much larger areas from mirrored servers, faster, and you can specify exact tags

2013년 6월 11일 11:10Pieren님의 의견

If I remember correctly, it is possible to fix all duplicates in one click with JOSM. Once the validator has been called, select the “duplicated” elements from the validator panel and right click to “merge” them (or something like that) from there.

2013년 6월 13일 09:53Andy Allan님의 의견

Nice work Aaron, good writeup too.

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