osm-qa-filter
v1.0.2
Published
Extract GeoJSON features from OpenStreetMap QA tiles using GL filters
Downloads
4
Readme
osm-qa-filter
A Tile Reduce processor to extract GeoJSON features from the OSM QA Tiles using Mapbox GL feature filters.
Run
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"]]'