Why not ask your question on the new OpenStreetMap Community Forum?

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

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 '19, 08:52

Joseph%20E's gravatar image

Joseph E
accept rate: 15%

edited 24 Aug '19, 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



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:


question asked: 22 Oct '17, 09:42

question was seen: 3,176 times

last updated: 24 Aug '19, 09:00

powered by OSQA