<div dir="ltr">Thanks for the detailed suggestion,<div><br></div><div style>the problem was that JOSM could not connect/validate dev url <b>"<a href="http://api06.dev.openstreetmap.org/api">http://api06.dev.openstreetmap.org/api</a>", </b>i tried it now and its been validated.</div>
<div style><br></div><div style>My query:</div><div style>Instead of using text editor, why don't i </div><div style><br></div><div style>1) Select the objects i want to upload in JOSM</div><div style>2) Make a new layer</div>
<div style>3) paste the objects there</div><div style>4) upload to dev server</div><div style><br></div><div style>from my previous experiences this will give new id's to objects and mark them as new objects.</div><div style>
<br></div><div style>but i don't know how this will affect the ref=* and relations. BTW i am not using relations now, but i will in near future.</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sat, May 18, 2013 at 2:09 PM, Frederik Ramm <span dir="ltr"><<a href="mailto:frederik@remote.org" target="_blank">frederik@remote.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<div class="im"><br>
<br>
On 18.05.2013 06:39, amrit karmacharya wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
How can we enter a small bunch of data into dev server?<br>
<br>
Using josm didnot work<br>
</blockquote>
<br></div>
A general rule for discussion in technical communities is: "Does not work" is not a sufficient description of a problem.<br>
<br>
This is how you use JOSM to upload test data to the dev API:<br>
<br>
* Download data from OSM (either with JOSM or through export tab)<br>
* Open XML file in text editor<br>
* Remove all changeset="...." attributes<br>
* Change all object IDs to negative - e.g. in vi you would use the following replacement operations<br>
<br>
s/ id="/ id="-/<br>
s/ ref="/ ref="-/<br>
<br>
(if XML file was saved from JOSM, take care to use ' not ")<br>
<br>
* 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<br>
<br>
* open file in JOSM<br>
* IMPORTANT - change JOSM settings to point to the dev API!<br>
* upload<br>
<br>
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.<br>

<br>
Bye<span class="HOEnZb"><font color="#888888"><br>
Frederik<br>
<br>
-- <br>
Frederik Ramm  ##  eMail <a href="mailto:frederik@remote.org" target="_blank">frederik@remote.org</a>  ##  N49°00'09" E008°23'33"</font></span><div class="HOEnZb"><div class="h5"><br>
<br>
______________________________<u></u>_________________<br>
dev mailing list<br>
<a href="mailto:dev@openstreetmap.org" target="_blank">dev@openstreetmap.org</a><br>
<a href="http://lists.openstreetmap.org/listinfo/dev" target="_blank">http://lists.openstreetmap.<u></u>org/listinfo/dev</a><br>
</div></div></blockquote></div><br></div>