From cc0dda09ce5ce5654df5e5c9f7181f0f4bdb0e44 Mon Sep 17 00:00:00 2001 From: typebrook Date: Mon, 18 Nov 2019 11:48:40 +0800 Subject: update --- alias | 1 + scripts/osm/osm.api.change.create | 21 --------------------- scripts/osm/osm.api.changeset.create | 21 +++++++++++++++++++++ 3 files changed, 22 insertions(+), 21 deletions(-) delete mode 100755 scripts/osm/osm.api.change.create create mode 100755 scripts/osm/osm.api.changeset.create diff --git a/alias b/alias index 2937f6b..5825575 100644 --- a/alias +++ b/alias @@ -169,6 +169,7 @@ alias data-osm-diff="curl https://planet.openstreetmap.org/replication/minute/st xargs curl -O" alias data-taiwan-town='curl -o town.zip -L http://data.moi.gov.tw/MoiOD/System/DownloadFile.aspx\?DATA\=CD02C824-45C5-48C8-B631-98B205A2E35A' alias data-taiwan-village='curl -o village.zip -L http://data.moi.gov.tw/MoiOD/System/DownloadFile.aspx\?DATA\=B8AF344F-B5C6-4642-AF46-1832054399CE' +alias data-taiwan-poly='curl -O http://download.geofabrik.de/asia/taiwan.poly' data-taiwan-county-code() { curl --silent https://www.ris.gov.tw/documents/data/5/1/RSCD0101.txt |\ iconv -f BIG-5 -t UTF-8 - diff --git a/scripts/osm/osm.api.change.create b/scripts/osm/osm.api.change.create deleted file mode 100755 index 1f17334..0000000 --- a/scripts/osm/osm.api.change.create +++ /dev/null @@ -1,21 +0,0 @@ -#!/bin/sh - -echo -n "type comment: " -read comment - -info=" - - - - - - " - -echo $info |\ -curl -u $OSM_USER_PASSWD --upload-file - $OSM_API/changeset/create |\ -tee /dev/tty |\ -tail -1 | read changeset_id - -echo " copied into clipboard" -echo "changeset created, check $OSM_SERVER/changeset/$changeset_id" -echo $changeset_id | xsel -ib diff --git a/scripts/osm/osm.api.changeset.create b/scripts/osm/osm.api.changeset.create new file mode 100755 index 0000000..1f17334 --- /dev/null +++ b/scripts/osm/osm.api.changeset.create @@ -0,0 +1,21 @@ +#!/bin/sh + +echo -n "type comment: " +read comment + +info=" + + + + + + " + +echo $info |\ +curl -u $OSM_USER_PASSWD --upload-file - $OSM_API/changeset/create |\ +tee /dev/tty |\ +tail -1 | read changeset_id + +echo " copied into clipboard" +echo "changeset created, check $OSM_SERVER/changeset/$changeset_id" +echo $changeset_id | xsel -ib -- cgit v1.2.3-70-g09d2