1
1

I want to create one polygon of these 3:

[out:json];
(
  area["name:nl"="Antwerpen"]["admin_level"=6];
  area["name:nl"="Limburg"]["admin_level"=6];
  area["name:nl"="Vlaams-Brabant"]["admin_level"=6];
) ->.a;
rel(area.a)["admin_level"=6];
out meta;
way(r);
out geom;

So the ways that are shared should be removed so it would be one area. Any way I could do this with Overpass?

Thanks, Frans

asked 19 May '15, 14:44

_Frans_'s gravatar image

_Frans_
31112
accept rate: 0%


Overpass API can't to this for you, but you could run the following Overpass API query in QGIS via QuickOSM plugin and merge the resulting polygons according to the description below.

[out:json];
(
  area["name:nl"="Antwerpen"]["admin_level"=6];
  area["name:nl"="Limburg"]["admin_level"=6];
  area["name:nl"="Vlaams-Brabant"]["admin_level"=6];
) ->.a;
(rel(area.a)["admin_level"=6];>;);out meta;

To merge intersecting polygons in QGIS, first select all polygons, then choose "Vector->Geoprocessing Tools->Dissolve" and dissolve by field "osm_type". Save the result in a new shape file and the result to your map. A new layer with a new multilinestring should appear like in the screenshot below.

Please see the following link for details. Here's how the result could look like with a bit of shapeburst styling:

alt text

permanent link

answered 19 May '15, 16:10

mmd's gravatar image

mmd
5.6k4988
accept rate: 37%

edited 19 May '15, 20:48

1

Thanks, this solved my problem!

(21 May '15, 13:58) _Frans_
1

Thanks for answer, this helped me very much.

(03 May '16, 16:22) Chriss85

You can try the webservice from OSM user Wambacher:

https://wambachers-osm.website/boundaries/

and try the "Union" feature at the bottom of the screen after selecting some boundary elements from the tree structure on the left. Then try to export in the format you need.

permanent link

answered 23 May '15, 19:03

stephan75's gravatar image

stephan75
12.5k453209
accept rate: 6%

edited 05 Jul '17, 08:12

Frederik%20Ramm's gravatar image

Frederik Ramm ♦
70.0k806341097

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×350
×120

question asked: 19 May '15, 14:44

question was seen: 3,406 times

last updated: 05 Jul '17, 08:12

powered by OSQA