LoginSignup
0
0

More than 5 years have passed since last update.

gpxの値を置換する

Posted at

gpxの値を全体的に動かしたいときのワンライナー
bash on windowsのperlを利用する

緯度から1.194引く
cat Current.gpx |perl -pe "s/lat=\"(\d+.\d+)/'lat=\"'.(\$1-1.194)/ge" > Current1.gpx
経度に0.64加える
cat Current1.gpx |perl -pe "s/lon=\"(\d+.\d+)/'lon=\"'.(\$1+0.64)/ge" > Current2.gpx

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0