OpenStreetMap 로고 OpenStreetMap

Getting highways without parking lanes tag with Overpass turbo

Rodrigo Rega님이 English로 2016년 3월 14일에 게시함. 최근 2016년 3월 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
이메일 아이콘 Bluesky 아이콘 Facebook 아이콘 LinkedIn 아이콘 마스토돈 아이콘 텔레그램 아이콘 X 아이콘

토론

2016년 3월 17일 14:36Diomas님의 의견

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

2016년 3월 18일 16:02Rodrigo Rega님의 의견

Done, thank you Diomas.

댓글을 남기려면 로그인하세요