[[TranslatedPages]] [[TOC(inline)]] = Upload to OSM = Geo data edited in JOSM is only available locally and only usable by the user who entered the data unless the user decides to make it available to the community too. In order to publish data the user has to '''upload''' it. Uploading means that the geo data is transferred to a central server run by the OSM community where it is integraded with geo data from other mappers in a central database. It's by uploading data that locally edited geo data both becomes part of the [http://www.openstreetmap.org public maps] and can be used by other members of the OSM community. == Changesets and upload requests == Geo data contributed to the OSM server consists of [wiki:/Help/Concepts/Object nodes, ways, and relations]. Because there are hundreds of mappers publishing their geo data on the OSM server it is important to track who published what data in which context. It would be tedious for mappers to describe for every singe node and every single way why it is published. A more convenient approach is to package a group of related objects and assign the package a comment, not the individual objects. The OSM project calls such a package a '''[wiki:/Help/Concepts changeset changeset]'''. A '''changeset''' is a collection of related changes (new objects, object modifications, or object deletings) applied to OSM data. Changesets are not equal to '''upload requests''', though. A changeset is a '''logical''' grouping of [wiki:/Help/Concepts/Object objects] whereas an upload request is a '''technical grouping''' for the purpose of transferring geo data to the central OSM server only. In JOSM we say, that objects are uploaded '''using''' upload requests '''to''' a changeset. The JOSM Upload Dialog allows one to configure both aspects of the upload requests to be used and of the changeset objects are uploaded to. Some of the settings are compulsory (i.e. the user has to configure them before he or she can upload geo data) but most of them are optional and JOSM works with reasonable default values. === One upload request into one changeset === In the most simple case there is only one upload request into a changeset: [[Image(one-changeset-one-upload-request.png)]] ''Keyboard shortcut:'' CTRL+SHIFT+U When you're happy with the data you generated and/or changed, you need it to upload to the OSM server to be available for everyone. If the [http://wiki.openstreetmap.org/index.php/JOSM/Plugins/Validator Validator plugin] is installed, JOSM now performs a quick check on the data. If it finds warnings or errors you'll be presented with a list of them and get the chance to correct the problems and try again or upload anyway. It's not necessary to fix all of that, but please don't go over it easily, especially not the errors. Finally JOSM will present you with a list of changed or newly created elements for reviewing it. You're also asked to provide a short freetext summary of your edits. This description will be saved with your data on the server and serves information purposes like for example the [http://openstreetmap.org/browse Recent Changes list]. If you fixed an error in the data by deleting a way not existing anymore in reality, this is something you should definitely mention. With your final click on "Upload changes" your data will be uploaded and visible for everyone else. Please be careful with editing and uploading data. When in doubt that everything is ok, rather refrain from uploading and save the area locally on disk to check back to it later. There is no simple answer to the question when and how often to upload. You neither should edit the whole day and then upload everything at one nor upload every minute after adding a way. The former to keep data in memory small, make uploads faster and minimize the risk of your edits colliding with someone else editing the same ways in the same area. The latter to minimize the overhead each upload poses on the server in means of CPU time and also database size since each change also means processing and saving some meta information. If possible group your edits. In logical as well as in geographically units, this also makes it easier to give a good upload summary. FIXME: explain open changesets == Error and Warning messages == === Deleting node which is still in use === {{{ #!html }}} If your upload includes a deleted [wiki:/Help/Concepts/Object node] the OSM server checks if the node is still used in one of the ways known to the server. You have to make sure that the node is ''isolated'' (not part of any way and not referred to by any relation) before it can be deleted. If the OSM server detects that the node is still in use it replies an error message which JOSM displays as follows: [[Image(upload-412-node-still-in-use.png)]] If you click on '''Prepare conflict resolution''' JOSM supports you in resolving the issue. First it downloads all ways in which the node is still used and merges them with your current dataset. In most cases, JOSM removes the deleted node from all parent ways automatically. If for some reason this isn't possible, JOSM creates a [wiki:/Help/Concepts/Conflict conflict] which you have to [wiki:/Help/Concepts/Conflict resolve] manually. After that, just upload again. Your upload now includes all parent ways of the deleted node and the deleted node is removed from all of them. The upload should therefore succeed.