How do I filter a given relation to only keep its members that have specific tag? For instance I have a bad relation of a river that contains both river itself and also riverbank... I want to get rid of the riverbank - that means to keep members that have waterway=river and drop members that have waterway=riverbank tags. asked 25 Dec '11, 23:48 Kozuch |
Assuming you know the relation id: a) load JOSM b) File, Download Object - select relation and enter the id. Don't forget to also download relation members c) Use Edit, Search (or Ctrl-F) and enter This selects the children (the way members) of the relation with the id <id> but only where they have the tag answered 26 Dec '11, 10:21 EdLoach ♦ The problem is the relation is too large and JOSM returns "Internal server error" (so does web front end). Is there a way to import the relation to JOSM in .osm XML format? I have the .osm file for that relation... Edit #1: Well I just tried to load that file into JOSM but I can not see any data imported (nothing showing in map screen). Does JOSM need nodes to be contained within the .osm file? My file only contains members of the relation (=IDs of ways). Edit #2: I see the relation loaded but was "incomplete", so nothing showed. So I just downloaded the members and now its OK.
(26 Dec '11, 21:56)
Kozuch
I've had that with a few relations recently, and used the download incomplete option you have already found (this seems slower, but more reliable).
(28 Dec '11, 11:30)
EdLoach ♦
|