简体   繁体   English

openstreetmap天桥api和渗透以获取海滩数据未获取多边形

[英]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. 我同时使用了天桥api和渗透来从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). 但是,从立交桥api,我可以得到海滩多边形(封闭路径)和点(节点),但是,从渗透,我只能得到点(节点)。 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. 不幸的是,渗透不支持同时使用--node-key-value--way-key-value You have to make multiple runs and then use --merge to merge the results. 您必须进行多次运行,然后使用--merge合并结果。 See https://wiki.openstreetmap.org/wiki/Osmosis for examples. 有关示例,请参见https://wiki.openstreetmap.org/wiki/Osmosis

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2025 STACKOOM.COM