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

Overpass: Erase Bbox

2

Is it possible to make advanced spatial queries like erase a bbox from a polygon query? So that you get a polygon-query with a hole in it? As far as I know, it's just possible to union different bboxs, so you get a kind of ring-query.

asked 13 Feb '13, 14:29

Mattes_tili's gravatar image

Mattes_tili
1464411
accept rate: 0%

edited 13 Feb '13, 14:30


One Answer:

4

Yes, the unions are all that is possible at the moment. But you can use union also on polygon queries which allows in principle an arbitrary geometry by stitching polygons.

answered 14 Feb '13, 12:50

Roland%20Olbricht's gravatar image

Roland Olbricht
6.7k36489
accept rate: 36%

Meanwhile this could be solved by the difference operator. See the other answer to this question.

(26 Jul '14, 22:54) mmd

Source code available on GitHub .