<div>Excellent suggestions everyone, I wouldn't have known about tying up the upload queue otherwise.</div>
<div> </div>
<div>I may convert Richard's Perl to Python and upload using that with a delay--once I get to somewhere that has faster internet access, that is. :)</div>
<div> </div>
<div>Also, I hope OSM has a tag for "the worst road on planet Earth" because I think I found it yesterday from the Belize border to Tikal in Guatemala...</div>
<div> </div>
<div> </div>
<div>Beau<br></div>
<div class="gmail_quote">On Sat, May 10, 2008 at 3:44 AM, Richard Fairhurst <<a href="mailto:richard@systemed.net">richard@systemed.net</a>> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div style="WORD-WRAP: break-word">
<div>
<div>
<div></div>
<div class="Wj3C7c">
<div>Beau Gunderson wrote:</div><br>
<blockquote type="cite">I've driven to Belize City from Seattle with a 1hz GPS logger and am wondering the best way to upload the data to OSM.<br><br>You can see the route here:<br><br>   <a href="http://www.bylandandsea.org/map" target="_blank">http://www.bylandandsea.org/map</a><br>
<br>I've got it in GPX files that are each a day's drive long and also as one giant GPX (180mb or so at current count).<br><br>Should I use the web upload feature or is there an easier way to do batch uploads? Upload the gigantic file or all of the small ones?</blockquote>

<div><br></div></div></div>
<div>Looks great.</div>
<div><br></div>
<div>Agreed with Lauri that you should avoid uploading the gigantic file because it'll block the server for others.</div>
<div><br></div>
<div>You can certainly use the batch upload scripts that DT pointed to. However, it would be kind to only upload five or so at a time, and wait for them to finish before uploading any more. Uploading a lot at once blocks the queue for others and can make you very unpopular when everyone is trying to upload their weekend's work!</div>

<div><br></div>
<div>If you don't mind a bit of Perl, you can upload a GPX to OSM like this:</div>
<div><br></div>
<div>
<div><span style="WHITE-SPACE: pre"></span>use HTTP::Request::Common;</div>
<div><span style="WHITE-SPACE: pre"></span>use LWP::UserAgent;</div>
<div><br></div>
<div>
<div><span style="WHITE-SPACE: pre"></span>$ua=LWP::UserAgent->new;</div>
<div><span style="WHITE-SPACE: pre"></span>$ua->credentials('<a href="http://www.openstreetmap.org/" target="_blank">www.openstreetmap.org:80</a>','Web Password',$yourusername, $yourpassword);</div>
<div><br></div>
<div>
<div><span style="WHITE-SPACE: pre"></span>$response=$ua->request(POST '<a href="http://www.openstreetmap.org/api/0.5/gpx/create'" target="_blank">http://www.openstreetmap.org/api/0.5/gpx/create'</a>,</div>

<div><span style="WHITE-SPACE: pre"></span>Content_Type => 'form-data',</div>
<div><span style="WHITE-SPACE: pre"></span>Content<span style="WHITE-SPACE: pre"> </span>=> [ file<span style="WHITE-SPACE: pre"> </span>=>[$filename],</div>
<div><span style="WHITE-SPACE: pre"></span> description=>$description,</div>
<div><span style="WHITE-SPACE: pre"></span> tags<span style="WHITE-SPACE: pre"> </span>=>$tags,</div>
<div><span style="WHITE-SPACE: pre"></span> public<span style="WHITE-SPACE: pre"> </span>=>"1" ] );</div>
<div><br></div>
<div>
<div><span style="WHITE-SPACE: pre"></span>if ($response->code==200) {</div>
<div><span style="WHITE-SPACE: pre"># yay, success</span></div>
<div><span style="WHITE-SPACE: pre"><span style="WHITE-SPACE: pre"></span>} else {<br></span></div>
<div><span style="WHITE-SPACE: pre"><span style="WHITE-SPACE: pre"></span># boo, failure<br></span></div>
<div><span style="WHITE-SPACE: pre"><span style="WHITE-SPACE: pre"></span>}<br></span></div>
<div><span style="WHITE-SPACE: pre"><br></span></div>
<div><span style="WHITE-SPACE: pre">...from which a batch uploader (again, perhaps pausing every so often) can be very easily constructed.</span></div>
<div><span style="WHITE-SPACE: pre"><br></span></div>
<div><span style="WHITE-SPACE: pre">cheers</span></div>
<div><span style="WHITE-SPACE: pre">Richard</span></div></div></div></div></div></div></div></blockquote></div><br>