We have been developing OSMLint as a tool identify common geometry and metadata problems OpenStreetMap data. OSMLint processes vector tiles with turf.js and TileReduce to produce geojson files of detected data errors.
In this post, I will demonstrate using OSMlint with OSM-qa-tiles to detect errors in OpenStreetMap.
- Clone my sample repository and install required software.
git clone https://github.com/Rub21/run-osmlint
- To run this for your country, run the
worker.sh. The worker.sh requires 2 parameters:
- input vector tiles, get them from the OSM-QA tiles website,
- boundingbox of your area.
./worker.sh https://s3.amazonaws.com/mapbox/osm-qa-tiles/latest.country/brazil.mbtiles.gz "[-73.975067, -34.108073, -34.512177,5.5056583]"
The script runs all the available linters and produces a gist file that you can visualize.
If you want to run a specific linter, check out sample commandes here: https://github.com/Rub21/run-osmlint#executing-the-comands