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

How to prevent a JOSM layer from ever being uploaded to OSM?

1
1

When I open a SHP file using the opendata plug-in I want make sure the layer never gets uploaded to OSM.

Right-Clicking on the "layer" gives me a "Discourage upload" option but it seems to have no effect, or I don't know how to use it.

I'd like to have a "Never Upload" option.

asked 05 Sep '17, 22:24

Alan01730's gravatar image

Alan01730
464343552
accept rate: 0%


One Answer:

1

If you save the layer as a OSM file, you can change the <osm> tag to be something like:

<osm version='0.6' upload='false' generator='JOSM'>

That will keep JOSM from nagging you about uploading it. But I am not sure it will prevent you from uploading it (I never wanted to try it in case it let me).

answered 05 Sep '17, 23:38

n76's gravatar image

n76
10.8k1082172
accept rate: 17%

1

Recent versions of JOSM also interpret upload='never', which goes a step further, disabling the upload options for the layer.

The "Discourage Upload" feature mentioned in the question actually just sets the upload='false' flag. The opendata plugin defaults to discourage upload, I don't think there is any way to set a layer to never in JOSM.

(06 Sep '17, 00:23) maxerickson

Source code available on GitHub .