開放街圖標誌 OpenStreetMap 開放街圖

Getting highways without parking lanes tag with Overpass turbo

於 2016年三月14日 由 Rodrigo RegaEnglish發表。 上一次更新在 2016年三月18日。

I am working in add parking lanes in the highways of Lugo city. For ease the job of locating all the ways that are without the needed tags, I wrote a little Overpass turbo query, after this I load the data it in JOSM to do the tagging.

highways without parking lanes tag

This is the Overpass query:

[out:xml][timeout:25];

// filter out ways without right or left parking lanes
(
way["highway"]["parking:lane:left"!~".*"]({{bbox}});
way["highway"]["parking:lane:right"!~".*"]({{bbox}});
);

// filter out ways with both parking lanes
( ._; - way["highway"]["parking:lane:both"~".*"]({{bbox}}); );

// filter out other type of ways 
( ._; - way[highway="pedestrian"]({{bbox}}); );
( ._; - way[highway="footway"]({{bbox}}); );
( ._; - way[highway="path"]({{bbox}}); );
( ._; - way[highway="steps"]({{bbox}}); );
( ._; - way[highway="crossing"]({{bbox}}); );
( ._; - way[service="parking_aisle"]({{bbox}}); );

// print results
out meta;
>;
out meta qt;
位置: Lugo, Casco Vello, Lugo, Galicia, Spain
電子郵件圖示 藍天圖示 Facebook 圖示 LinkedIn 圖示 乳齒象圖示 Telegram 圖示 X 圖示

討論

Diomas2016年03月17日 14時36分 發表的評論

also highway=crossing can be mapped as a way (a line connecting two sidewalks lines that crosses road highway line in highway=crossing node), so you should exclude it as well

Rodrigo Rega2016年03月18日 16時02分 發表的評論

Done, thank you Diomas.

登入 來留下評論