[GRASSLIST:7994] ascii vector line format question
Maciek Sieczka
werchowyna at epf.pl
Fri Aug 19 15:59:20 EDT 2005
Dear All,
Is it a 100% rule, that the line ending is *always* indicated by "1"?
Say like here:
L 12 1
597230.44979275 5681618.56747334
597235.81795873 5681608.14691583
597241.81767366 5681596.14748598
1 2
I have written a simple awk script for exporting Grass vector into a Surfer
"blanking file", "BLN" ascii format, which is e.g. used for defining
elevation faults for interpolation in Surfer. I would like to share it on a
WIKI, but first I need to make sure if the awk search formula I use:
( (NR > 10) && ($1 == "L") ) {print $2",0"}
( (NR > 10) && ($1 != "L") && ($1 !=1) ) {print $1","$2}
is 100% compatible with any possible Grass ascii line vector file.
Maciek
More information about the grass-user
mailing list