Ignore:
Timestamp:
2011-09-11T20:22:26+02:00 (13 years ago)
Author:
bastiK
Message:

applied #6742 - allow script generated files to set default changeset info (based on patch by brycenesbitt)

To set a default upload comment and other tags, include a changeset element in the osm file like this:
<osm version='0.6' upload-changeset='-1'>

<changeset id='-1'>

<tag k='comment' v='suggested upload comment'/>
<tag k='source' v='the source'/>

</changeset>
<node .../>
...

</osm>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/io/UploadDialog.java

    r4310 r4414  
    301301    public void setDefaultChangesetTags(Map<String, String> tags) {
    302302        pnlTagSettings.setDefaultTags(tags);
     303         for (String key: tags.keySet()) {
     304            if (key.equals("comment")) {
     305                changesetCommentModel.setComment(tags.get(key));
     306            }
     307        }
    303308    }
    304309
Note: See TracChangeset for help on using the changeset viewer.