2020-01-29
The buildings added to OpenStreetMap as part of the Edmonds import contained many redundant points, i.e. points in a line that contribute nothing to the shape of the building:
To clean these up I created a small script for the JOSM Scripting Plugin to detect and select them. Starting with a selection of buildings, it returns a selection of points that:
- are in the middle of a line
- carry no map data
- arenβt connected to another object
The script is roughly:
Usage consists of:
- Select some buildings for analysis, e.g. Search β
new building
. - Run the script.
- Review the selected nodes, deselecting false positives.
- Delete the selected nodes.
Using this method I removed approximately 15,000 imported nodes from OpenStreetMap in changesets like this.