On 26/07/07, <b class="gmail_sendername">Dermot McNally</b> <<a href="mailto:dermotm@gmail.com">dermotm@gmail.com</a>> wrote:<div><span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On 25/07/07, D Tucny <<a href="mailto:d@tucny.com">d@tucny.com</a>> wrote:<br><br>> What console output are you getting from JOSM? It should show which object<br>> it was trying to upload when it got the error which should help you track it
<br>> down...<br><br>Here's what I got:<br><br>upload to: <a href="http://www.openstreetmap.org/api/0.4/segment/create">http://www.openstreetmap.org/api/0.4/segment/create</a><br>got return: 412 with id 0<br><?xml version='
1.0' encoding='UTF-8'?><br><osm version='0.4' generator='JOSM'><br> <segment id='0' visible='true' from='32721926' to='32722017'><br> <tag k='created_by' v='JOSM' />
<br> </segment><br></osm><br><br>I'm not that clued in on the data representation, but I assume that<br>the return is identifying a segment of ID 0 (doesn't zero represent<br>brokenness?) between the two named nodes as being the difficulty? Any
<br>way of having JOSM search for those nodes by number? I can't spot such<br>a feature...</blockquote><div><br>well, segment ID of 0 in this case is fine, you're making a new segment and the API will give you the segment ID when it's been added, or not as it's failed... Checking the history for those nodes gives this...
<br><br>GET <a href="http://api.openstreetmap.org/api/0.4/node/32721926/history">http://api.openstreetmap.org/api/0.4/node/32721926/history</a><br><br><?xml version="1.0" encoding="UTF-8"?><br><osm version="
0.4" generator="OpenStreetMap server"><br> <node id="32721926" lat="52.140773" lon="-8.275918" user="mackerski" visible="true" timestamp="2007-07-25T00:07:52+01:00">
<br> <tag k="created_by" v="JOSM"/><br> </node><br> <node id="32721926" lat="52.140773" lon="-8.275918" user="mackerski" visible="false" timestamp="2007-07-25T00:17:59+01:00">
<br> <tag k="created_by" v="JOSM"/><br> </node><br></osm><br><br>GET <a href="http://api.openstreetmap.org/api/0.4/node/32722017/history">http://api.openstreetmap.org/api/0.4/node/32722017/history
</a><br><?xml version="1.0" encoding="UTF-8"?><br><osm version="0.4" generator="OpenStreetMap server"><br> <node id="32722017" lat="52.1406209644915" lon="-
8.275863278262" user="mackerski" visible="true" timestamp="2007-07-25T00:08:01+01:00"><br> <tag k="created_by" v="JOSM"/><br> </node><br> <node id="32722017" lat="
52.1406209644915" lon="-8.275863278262" user="mackerski" visible="false" timestamp="2007-07-25T00:18:13+01:00"><br> <tag k="created_by" v="JOSM"/>
<br> </node><br></osm><br><br><span class="ppt" id="_user_dev@openstreetmap.org"></span>So yep, the nodes have been deleted... (visible="false")<br><br>To find those, using the JOSM search function, you can use the useful, but not overly obvious id:<id> search string,
e.g. id:32722017 and you should find the node...<br><br>Good luck :)<br><br>d<br><br> </div><br></div>