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!
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.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.