10

I would like to use Overpass Turbo to return all peaks over a certain elevation. I tried using the wizard, but I cannot figure out how to use the greater than (>) operator.

1
  • Welcome to GIS SE! As a new user be sure to take the Tour to learn about our focussed Q&A format. I recommend not thinking about GIS SE as being some sort of online GIS tutor. For your questions to be answered here they should as much as possible describe not just what you want to do, but precisely what you have tried and where you are stuck trying that.
    – PolyGeo
    Jul 23, 2017 at 5:29

2 Answers 2

10

I was able to get it to work with this code:

(
  node[natural=peak]({{bbox}})
      (if:t["ele"] > 4269.2); 
);
out; 
6

Overpass turbo wizard doesn't yet support numerical comparison. However, Overpass Api, the engine powering overpass turbo, already covers this feature.

This means that you need to provide the query in overpass ql format, and adapt it to include numerical comparison. You cannot use the wizard popup window in that case.

There's an extensive blog post that should answer all questions: http://dev.overpass-api.de/blog/numbers.html

It even includes examples for peaks over a certain ele.

Btw: adding this feature to the wizard is being discussed here: https://github.com/tyrasd/overpass-wizard/issues/4

1
  • 1
    Thanks for replying. I was able to get it to work with this code: ( node[natural=peak]({{bbox}}) (if:t["ele"] > 4269.2); ); out; Jul 23, 2017 at 12:26

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.