In Overpass wizard one can say: type:node|way|relation What about type "closed-way"? What's the syntax? Thank you, RB

asked 22 Oct '17, 09:42

bapman's gravatar image

bapman
56336
accept rate: 0%

edited 22 Oct '17, 16:34


https://wiki.openstreetmap.org/wiki/Overpass_API/Overpass_QL#Closedness - use the operator is_closed()

For example, this finds all closed ways with leisure=fitness_station

[out:csv(::count)][timeout:60]; ( way ["leisure"="fitness_station"] (if:is_closed()) ; ); out count;

See https://overpass-turbo.eu/s/LMB

For unclosed ways, add ! before is_closed, eg:

[bbox:{{bbox}}] ; way["area"="yes"](if:!is_closed()); out geom;

permanent link

answered 24 Aug, 08:52

Joseph%20E's gravatar image

Joseph E
3002512
accept rate: 16%

edited 24 Aug, 09:00

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×350
×120
×49
×1

question asked: 22 Oct '17, 09:42

question was seen: 596 times

last updated: 24 Aug, 09:00

powered by OSQA