Is there a way to get filtered geojson data from an huge osm file?
I'm trying to get the geodata for shops only from an 48GB big osm file. (full geodata for germany from geofabrik.de)
I have already converted it into geojson using mapbox/minjur
but the over 20GB big geojson file is to big for any editor and cant be included in my TypeScript project to get the wanted data by my own.
If you need further informations let me know as a comment below. Thanks a lot for your help.
You should drop all unwanted data before converting it to GeoJOSN.
Use the tags-filter option of osmium-tool to extract all shops:
osmium tags-filter -R -o shops.osm.pbf germany.osm.pbf shop
Then convert to GeoJSON:
osmium export shops.osm.pbf -o shops.geojson