From 2fd65c9029ee641f3323c26fd8cc80e3214b5c6b Mon Sep 17 00:00:00 2001 From: typebrook Date: Mon, 11 Nov 2019 01:25:59 +0800 Subject: update --- utils/osm | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'utils') diff --git a/utils/osm b/utils/osm index e37c8ff..ca1eb40 100644 --- a/utils/osm +++ b/utils/osm @@ -60,8 +60,13 @@ osm.in_ways() { tee /tmp/osm &&\ echo ways contain node $1 are copied into /tmp/osm > /dev/tty } -# extract an element from .osm format STDIN osm.extract() { +} +osm.extract.tags() { +} +# extract an element from .osm format STDIN +# $1 as [node|way|relation], $2 as id +osm.extract.id() { echo "" sed -nr "/^ *<$1 id=\"$2\".*/,/^ *<\/$1>/p" echo "" -- cgit v1.2.3-70-g09d2