简体   繁体   English

有没有办法从Overpass API中获得一条路?

[英]Is there a way to get the middle of a way from Overpass API?

I´m trying to import several Ways and Nodes from the OSM. 我试图从OSM导入几种方法和节点。 But i dont want to get the Ways as a way with different nodes, only the middle of the way. 但我不想把方式作为一种方式与不同的节点,只有中间的方式。

In my case, all ways are an area (Parks, Parking etc.) and i only need one point - the middle of the area. 在我的情况下,所有方式都是一个区域(公园,停车场等),我只需要一个点 - 区域的中间。 I could calculate this after the request, but maybe theres a more elegant way? 我可以在请求后计算出来,但也许是更优雅的方式?

Yes, you can use the center geometry output mode. 是的,您可以使用center几何输出模式。 See this example . 看这个例子

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

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