NOTICE: is being shutdown on 1st March 2024. Please use the OpenStreetMap Community Forum

I want to find all the communes in a "Département" and around 10 kilometers of the limit of this département. rel[name="Ille-et-Vilaine"][boundary=administrative];rel(around:10000)['admin_level'='8'];out meta;

The request is very very slow

asked 06 Dec '14, 12:45

mga_geo's gravatar image

accept rate: 0%

No surprise here. This kind of query is known to be slow. Moreover, the way you constructed the query would even return incorrect results, as you wouldn't get all communities in your department (only those up to 10km proximity to the border).

Note: I had to remove most parts of my previous answer, as it didn't properly take the 10km distance into account. Sorry for that.

I've submitted a pull request to improve the runtime of your query. Once that fix is in place, your query will run in about 2 minutes with the following result:

alt text

Link to previous (non-working) overpass turbo query:

permanent link

answered 06 Dec '14, 13:22

mmd's gravatar image

accept rate: 37%

edited 28 Dec '14, 15:30

Pull request for faster around statement can now be tested on the dev instance:

This query might take up to 2 minutes and returns about 30MB of data. Results should look pretty much like on the screenshot above.

(24 Jun '15, 21:20) mmd
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]( "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: 06 Dec '14, 12:45

question was seen: 5,207 times

last updated: 24 Jun '15, 21:20

NOTICE: is being shutdown on 1st March 2024. Please use the OpenStreetMap Community Forum