openstreetmapoverpass-apiosmosis

openstreetmap overpass api and osmosis to get beach data not getting polygons


I tried to collect beach data in a certain region. I used both overpass api and osmosis to extract beach from a pbf. Both worked. But from overpass api, i can get beach polygons (closed ways) and points (nodes), however, from osmosis, I can just get points (nodes). When I search in osmosis, I did include the ways and relations. Still, I didn't get beach polygons as i got from overpass.

Anyone may have some solutions or explanation? Many thanks!


Solution

  • Unfortunately osmosis doesn't support using --node-key-value and --way-key-value together. You have to make multiple runs and then use --merge to merge the results. See https://wiki.openstreetmap.org/wiki/Osmosis for examples.