Right now I have two main .OSM files: one where the buildings have all been traced in more detail and have been given accurate height values, and one that has all the grass in the right places. Because, somehow, a few patches of grass were removed from the main OSM I'm working on, and I need to transplant them back from the other OSM file. But I can't, because JOSM doesn't let you select parts of the map with the tag landuse=grass, and the clipboards of two instances of JOSM are separate, so I couldn't copy the grass from one to the other in JOSM even if I could select it. I've tried to put the grass back in by merging the files with osmconvert, but that always screws up a bunch of the buildings, and sometimes duplicates the buildings as well. I need a way to isolate and copy those two sections of grass to the other OSM file. Does anyone know how?

asked 17 Dec '15, 17:40

bgiglione's gravatar image

bgiglione
16112
accept rate: 0%


  1. Save your two osm files locally if not done already.
  2. Close all your JOSM instances, start only one.
  3. Open both osm files, as separated layers.
  4. Switch to the grass layer, seach (Ctrl-F) for landuse=grass, copy (Ctrl-C).
  5. Switch to the main layer, Paste (Ctrl-V).
  6. Check for duplicate data, save your work.
  7. Profit !
permanent link

answered 18 Dec '15, 11:10

Vincent%20de%20Phily's gravatar image

Vincent de P... ♦
16.8k14147241
accept rate: 19%

Sorry to say so, but your problem doesn't make a lot of sense.

Naturally you can select, copy and then paste an element to a different layer in JOSM and landuse=grass is no different than anything else.

Note: it is not quite clear if your "two" instances is just a typo or serious. You should -not- be running two instances of JOSM in parallel, you simply load your data files in to two different layers in the same instance.

permanent link

answered 17 Dec '15, 20:44

SimonPoole's gravatar image

SimonPoole ♦
35.8k13268571
accept rate: 18%

edited 17 Dec '15, 20:47

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:

×487
×463
×78
×34
×6

question asked: 17 Dec '15, 17:40

question was seen: 1,604 times

last updated: 18 Dec '15, 11:10

powered by OSQA