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

Overpass: polygon query

2

I want to create a polygon-query with the points of the following query:

<osm-script>
  <union into="_">
    <id-query into="_" ref="134816256" type="way"/>
    <id-query into="_" ref="95661967" type="way"/>
    <id-query into="_" ref="201062997" type="way"/>
    <id-query into="_" ref="95675717" type="way"/>
    <id-query into="_" ref="96007270" type="way"/>
    <id-query into="_" ref="96007267" type="way"/>
    <id-query into="_" ref="95663153" type="way"/>
  </union>
  <recurse from="_" into="_" type="down"/>
  <print from="_" limit="" mode="body" order="id"/>
</osm-script>

Can I directly insert the output-nodes of the first query into a polygon query?

asked 13 Feb '13, 14:39

Mattes_tili's gravatar image

Mattes_tili
1464411
accept rate: 0%

edited 13 Feb '13, 15:36


One Answer:

3

EDIT: This is possible since a couple of years, see here.


No, I'm sorry this isn' possible so far. You would have to receive the coordinates and then form a polygon query out of them.

answered 14 Feb '13, 12:51

Roland%20Olbricht's gravatar image

Roland Olbricht
6.7k36489
accept rate: 36%

edited 03 May '19, 12:45

Source code available on GitHub .