—Blog—

Finding Good Hill-Top Portable Sites (2)

By Matt, 2E1HNK on

This is a quick update to the blog post about Finding Good Hilltop Sites.

The Overpass API code given in the original blog post didn't take into account the presence of points in the vacinity with a higher elevation that the point in question. That is to say that it would find 'good' sites which were elevate and had road access but which might also have other land around which is more elevated than the site itself (think of something like a mountain pass - elevated but probably going between two large mountains). This update should resolve that by excluding any sites which have any features with a greated elevation within 2km of the site.


  [out:json][timeout:800];

  ( way({{bbox}})(if:t["ele"] > 250);
    node({{bbox}})(if:t["ele"] > 250);
    rel({{bbox}})(if:t["ele"] > 250);
  )->.summits;

  foreach.summits->.this_summit (
    ( node.summits(around.streets:2000)(if:t["ele"] > 250);
      way.summits(around.streets:2000)(if:t["ele"] > 250);
      rel.summits(around.streets:2000)(if:t["ele"] > 250);
    )->.prominence;

    if ( .prominence.count < 1 ) {
      (.selected_summits; .this_summit;)->.selected_summits;
    }
  );

  way(around.selected_summits:100)[highway][highway!~"^(footway|path|steps|bridleway|track|unclassified|cycleway|service)$"]
    ->.streets;

  ( node.selected_summits(around.streets:100);
    way.selected_summits(around.streets:100);
    rel.selected_summits(around.streets:100);
  )->.matchingSummits;

  (.matchingSummits; .streets;);
  out geom;
Profile pic
Matt
M5MAT
ex 2E1HNK

Similar Posts