The goal is to find all waterways in Open Street Maps globally.
This is the equivalent for a random area in China in overpass turbo. Instead of doing it for this bounded area, I want to query globally.
Overpass turbo gets overloaded by a global query but I found osmosis in a related related2 question which seem to be able to get the job done.
wget -O- https://planet.openstreetmap.org/planet/planet-latest.osm.bz2 | bzcat | osmosis --rx - <filter args here> --wx my-compressed-output.osm.gz
I struggle however in translating the overpass query to the osmosis query and got lost in osmosis documentation.
How would I filter the waterways in osmosis? I think I need --way-key (--wk) or --way-key-value (--wkv) but like to check before executing a massive query.(50GB download)
Alternative solutions (non osmosis) are welcome too.