[Imports] what tool to upload osc-files?
Etienne Chové
chove at crans.org
Wed Nov 4 17:52:29 GMT 2009
Marcus Wolschon a écrit :
> What tool can be used to upload change(osc)-files?
>
> Osmosis cannot upload them to the API and
> the wiki says bulkupload.pl/py both are not
> compatible with API 0.6 .
If it's a small file, try using curl :
CSID=$(curl -u user:password -o - -T new_changeset.osm
http://api06.dev.openstreetmap.org/api/0.6/changeset/create)
curl -u user:password -o - -T your_file.osc
http://api06.dev.openstreetmap.org/api/0.6/changeset/$CSID/upload
new_changeset.osm should lokk like :
<?xml version="1.0" encoding="UTF-8"?>
<osm version="0.6">
<changeset>
<tag k="created_by" v="curl"/>
<tag k="comment" v="my diff"/>
</changeset>
</osm>
--
Etienne
More information about the Imports
mailing list