A Tile Reduce processor to extract GeoJSON features from the OSM QA Tiles using Mapbox GL feature filters.
⚠️ This repository is no longer maintained by Lukas Martinelli.
First install the required dependencies. You need a new Node version (> 5
).
npm install -g osm-qa-filter
Now download the Mapbox QA Tiles. You can either download the entire planet or a smaller country extract.
wget https://s3.amazonaws.com/mapbox/osm-qa-tiles/latest.country/liechtenstein.mbtiles.gz
gunzip liechtenstein.mbtiles.gz
Invoke osm-qa-filter
file with the planet file and output GeoJSON file.
osm-qa-filter -m planet.mbtiles -o postbox.geojson \
--filter '["all", ["==", "amenity", "post_box"], ["$type", "==", "Point"]]'