NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the 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

bapman
71337
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
3902615
accept rate: 15%

edited 24 Aug '19, 09:00

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:

×483
×228
×65
×1

question asked: 22 Oct '17, 09:42

question was seen: 3,699 times

last updated: 24 Aug '19, 09:00

NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum