[OSM-newbies] Bulk upload of traces

Simone Cortesi simone at cortesi.com
Thu Nov 5 09:06:02 GMT 2009


On Sat, Oct 31, 2009 at 08:49, H.S.Rai <hardeep.rai at gmail.com> wrote:
> Is there any way to upload bulk GPS traces? Save file foo.zip contain
> 100 traces, then think of loading zip file and all 100 traces uploaded
> in a single go. Then one can later fill tags and descriptions.

I use this for my own needs:
http://wiki.openstreetmap.org/wiki/Batch_Upload#CURL

which then i recurse through using a simple bash script:

#!/bin/sh
 for i in `ls *.gpx`
 do
	echo "Uploading GPX file $i ..."
	curl -u user:password -H "Expect: " -F "file=@"file.gpx -F
description=description -F tags=tags -F visibility=public
http://www.openstreetmap.org/api/0.6/gpx/create
 done

let me know if it helps...

-- 
-S




More information about the newbies mailing list