【发布时间】:2018-03-08 19:28:02
【问题描述】:
我有这个问题,
area["name"="Greater London"];
way(area)["amenity"="restaurant"]->.all;
( .all; - ._; );
(._;);
out geom;
返回这个结果
<way id="4270351">
<bounds minlat="51.6322589" minlon="-0.0381454" maxlat="51.6327917" maxlon="-0.0376948"/>
<nd ref="25637026" lat="51.6327251" lon="-0.0379737"/>
<nd ref="25637027" lat="51.6327917" lon="-0.0377806"/>
<nd ref="25637029" lat="51.6326585" lon="-0.0376948"/>
<nd ref="25637030" lat="51.6323298" lon="-0.0378665"/>
<nd ref="25637032" lat="51.6322589" lon="-0.0380668"/>
<nd ref="25637034" lat="51.6324054" lon="-0.0381454"/>
<nd ref="25637026" lat="51.6327251" lon="-0.0379737"/>
<tag k="amenity" v="restaurant"/>
<tag k="building" v="block"/>
<tag k="created_by" v="JOSM"/>
</way>
有没有办法得到相同但没有ND标签?像这样:
<way id="4270351">
<bounds minlat="51.6322589" minlon="-0.0381454" maxlat="51.6327917" maxlon="-0.0376948"/>
<tag k="amenity" v="restaurant"/>
<tag k="building" v="block"/>
<tag k="created_by" v="JOSM"/>
</way>
我会从 lat lon 得到需要的,在这种情况下我不想得到 ND,因为这个标签会使返回的数据很重
【问题讨论】:
-
嘿@mmd,这不是重复的。这是我自己在 Osm 帮助组中的问题。我在那里没有最终答案。请在标记为 fuplicatr 之前检查答案
-
您在 2 个不同的网站上发布了完全相同的问题,但没有明确说明。这是在浪费大家的时间。
-
我无法理解你的观点...ì如果问题没有答案,我该怎么办????换个问题?或者尝试在其他资源中找到答案??好的,没问题,不要回答,浪费你的时间。谢谢
-
编辑这两个问题并添加指向您发布问题的其他网站的链接。您是否已经按照建议检查了文档? wiki.openstreetmap.org/wiki/Overpass_API/…
标签: openstreetmap overpass-api