我正在使用立交桥涡轮从高速公路(=高速公路)中提取节点。下面是我正在使用的代码。但是,此代码为我提供了边界框中的所有节点,并且没有过滤高速公路。
[out:xml];
(
(way(39.90,32.83,39.96,32.89);)->.a;
((way.a["highway"="motorway"]);)->.b;
((way.a["highway"="motorway_link"]);)->.b;
);
(.b;>;);
out body qt;
我正在使用立交桥涡轮从高速公路(=高速公路)中提取节点。下面是我正在使用的代码。但是,此代码为我提供了边界框中的所有节点,并且没有过滤高速公路。
[out:xml];
(
(way(39.90,32.83,39.96,32.89);)->.a;
((way.a["highway"="motorway"]);)->.b;
((way.a["highway"="motorway_link"]);)->.b;
);
(.b;>;);
out body qt;
请参阅我在 help.osm.org 上发布的答案:https ://help.openstreetmap.org/questions/41754/extracting-node-from-highways
Try this query instead:
[out:xml]
[timeout:25]
;
(
way
["highway"="motorway"]
(39.90,32.83,39.96,32.89);
way
["highway"="motorway_link"]
(39.90,32.83,39.96,32.89);
);
out body;
>;
out skel qt;
You can view it on overpass turbo. Note that it doesn't return any results because the given bounding box doesn't contain motorways. Either increase the bounding box size or choose a different highway value, for example highway=primary.