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

How to show certain nodes and aministrative geometry?

0

How can I show nodes of a certain type such as http://overpass-turbo.eu/s/pt7 and at the same time show the boundary of its administrative level as shown in http://overpass-turbo.eu/s/pt5 For the administrative level, I only would like the outline, not a a filled polygonal. Thanks.

asked 02 Jun '17, 10:24

pander's gravatar image

pander
26225
accept rate: 0%


One Answer:

1

One way is to use the union operator in the Overpass language, grouping the queries before the out statement with parentheses.

For the queries you show, multiple out statements is probably easier:

{{geocodeArea:"Gemert-Bakel"}}->.searchArea;
rel(pivot.searchArea);
way(r);
out body geom;
node[natural=tree](area.searchArea);
out;

The way(r) line just retrieves the way members of the relation. It would probably be nicer to override the style for the relation but I'm not sure if that is possible.

answered 02 Jun '17, 19:10

maxerickson's gravatar image

maxerickson
12.7k1083176
accept rate: 32%

Source code available on GitHub .