From 6e4eeaa2becc5441fce867f6737c8074d74dd44a Mon Sep 17 00:00:00 2001 From: typebrook Date: Thu, 5 Dec 2019 11:33:40 +0800 Subject: update --- scripts/match-road.sh | 23 +++++++++++++++-------- 1 file changed, 15 insertions(+), 8 deletions(-) (limited to 'scripts/match-road.sh') diff --git a/scripts/match-road.sh b/scripts/match-road.sh index f7d27cc..853980a 100755 --- a/scripts/match-road.sh +++ b/scripts/match-road.sh @@ -31,24 +31,31 @@ function get_data() { sed -nr '// {H; /<\/trkpt>/ {x; s/\n/ /g; p; s/.*//; x}}' $1 |\ sed -nr 'h; s/.*lon="([^"]+).*/\1/; H; g s/.*lat="([^"]+).*/\1/; H; g + # If trkpt has no time, leave it blank /time/ { s/.*