This is a static archive of our old OpenStreetMap Help Site. Please post any new questions and answers at community.osm.org.

Overpass: Retrieve only relation fully enclosed by a bounding box

0

I have the following query (btw: How can I copy/paste multiple lines of code?):

screenshot of osm-script code

The goal is to retrieve all municipalities and administrative centres located in the bounding box area. This works fine. However, also relations are included that are just situated in the bounding box. Is it possible to retrieve only the relations that are fully situated in the bounding box?

asked 28 Jan '16, 00:42

Steijn's gravatar image

Steijn
61569
accept rate: 0%

edited 05 Feb '16, 10:13

aseerel4c26's gravatar image

aseerel4c26 ♦
32.6k18248554

regarding your meta question: see markdown docs (you may want to use the dingus markdown preview since the live preview here is sometimes a bit buggy).

(05 Feb '16, 10:15) aseerel4c26 ♦

Source code available on GitHub .