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

converting multiple relations into 1 polygon

1

update: fixed

Hi there,

I'm trying to merge multiple relations into one polygon area.

What i did:

In JOSM:

  1. File->Download an object, choose the type "relation" and give the id, uncheck "Download referents" and check "Download members"
  2. remove all admin-centres
  3. remove all tags in the tags/members column
  4. removed all inner ways (with lasso tool/select tool)
  5. fix: copy-pasted all to a new layer (CMD-A, CMD-C, CMD-ALT-V)
  6. merged ways with (C) and preserve all ways
  7. Save as .osm
  8. Use osm2poly.pl script for generate the poly file : perl osm2poly.pl data.osm > data.poly

But then i get multiple polylines. How can i merge these relations?

Add. I based my actions on https://help.openstreetmap.org/questions/15481/converting-a-relation-into-an-osmosis-polygon-file

Regards, Ed'

asked 10 Apr '19, 10:01

eddiebouncer's gravatar image

eddiebouncer
26112
accept rate: 0%

edited 15 Apr '19, 10:47

Source code available on GitHub .