[GRASS-user] ASCII Vector definition

Paulo Marcondes paulomarcondes at gmail.com
Tue Jun 10 15:59:44 EDT 2008


Hi all,

I had issues while triyng to import an 850k lines ASCII vector file,
that looks like this:

ORGANIZATION: Company
DIGIT DATE:   10/06/2008
DIGIT NAME:   Me
MAP NAME:     Isopach
MAP DATE:     2008
OTHER INFO:   Geodetic Info
MAP THRESH:   100
VERTI:
P 815257 1
 287750.911964  7501478.351623  -140.000000
...
 353361.492455  7654299.848450  -88.000000
 353461.508591  7654299.848450  -88.000000
 353561.524727  7654299.848450  -84.000000
 353661.540863  7654299.848450  -88.000000
 353761.557000  7654299.848450  -88.000000
 353861.573136  7654299.848450  -84.000000
 353961.589272  7654299.848450  -88.000000
 354061.605408  7654299.848450  -88.000000
 354161.621544  7654299.848450  -84.000000
 1 1

I tried the import with the following command:
v.in.ascii -b in=/sismica4D_9/Landmark/Projeto_Sao_Tome/horizonte/20080906/alvo1_isocrona.vec
out=alvo1_isocrona fs='\t' y=2 z=3 --o

and got the following:

Maximum input row length: 42
Maximum number of columns: 3
Minimum number of columns: 1
WARNING: Cannot remove directory
         '/u/user/gisdata/Location/PERMANENT/.tmp/soledade/23183.1'
ERROR: y column number > minimum last column number
       (incorrect field separator?)

However, I defined the vector file withe AWK's help: awk '{printf "
%f\t%f\t%f\n",$1,$2,$3}' file1 > alvo1_isocrona.vec, then added the
rest by hand.
BTW, I am seriously considering a shell script to create those ASCII
vectors from plain XYZ files.

-- 
Paulo Marcondes = PU1/PU2PIX
-22.915 -42.224 = GG86jc


More information about the grass-user mailing list