[GRASS5] v.in.gns fix

Hamish hamish_nospam at yahoo.com
Wed Jun 8 19:51:46 EDT 2005


v.in.gns:

#TODO: fix dms_lat,dms_long DDMMSS -> DD:MM:SS


use cut -b1,2


e.g.

IN=DDMMSS
DEG=`echo $IN | cut -b1,2`
MIN=`echo $IN | cut -b3,4`
SEC=`echo $IN | cut -b5,6`
DEG_STR="$DEG:$MIN:$SEC"




Hamish




More information about the grass-dev mailing list