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.
-
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
I was able to get it to work with this code:
(
node[natural=peak]({{bbox}})
(if:t["ele"] > 4269.2);
);
out;
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
-
1Thanks 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