[OSM-dev] Overpass DEV url?

Frederik Ramm frederik at remote.org
Sat May 18 08:24:55 UTC 2013


Hi,

On 18.05.2013 06:39, amrit karmacharya wrote:
> How can we enter a small bunch of data into dev server?
>
> Using josm didnot work

A general rule for discussion in technical communities is: "Does not 
work" is not a sufficient description of a problem.

This is how you use JOSM to upload test data to the dev API:

* Download data from OSM (either with JOSM or through export tab)
* Open XML file in text editor
* Remove all changeset="...." attributes
* Change all object IDs to negative - e.g. in vi you would use the 
following replacement operations

s/ id="/ id="-/
s/ ref="/ ref="-/

(if XML file was saved from JOSM, take care to use ' not ")

* make sure you have no dangling references (e.g. relations pointing to 
objects not in your file) - if you don't need relations the easiest 
thing is to simply remove them all from your file

* open file in JOSM
* IMPORTANT - change JOSM settings to point to the dev API!
* upload

Not that uploading data into the dev API will *not* give you a rendered 
map with that data, *nor* make the data accessible via XAPI or Overpass. 
Also, the data you upload in this way will have different object IDs, 
changeset IDs, user IDs, and version numbers than the original data you 
copied from the production API.

Bye
Frederik

-- 
Frederik Ramm  ##  eMail frederik at remote.org  ##  N49°00'09" E008°23'33"



More information about the dev mailing list