blob: 6138d7eb067509ef4ff38a1e50e4bf36db2d6d24 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
#! /bin/bash
OSM_USER_PASSWD=$(cat ~/git/settings/tokens/osm)
#server=https://master.apis.dev.openstreetmap.org
server=https://api.openstreetmap.org
comment="change is_in format"
for i in "$@"
do
case $i in
-s)
lon_col=0; lat_col=1
shift;;
*)
csv=$i
shift;;
esac
done
info="<osm>
<changeset>
<tag k='comment' v='$comment'/>
</changeset>
</osm>
"
echo $info |\
curl -u $OSM_USER_PASSWD -i --upload-file - $server/api/0.6/changeset/create |\
tee /dev/tty |\
tail -1 |\
xsel -ib
|