Hello,
your input file contains four (columns 2 and 3, line positions 9,13,19,23)
ascii = zero characters (show up in BBEDIT-text-view- show invisibles).
I removed these, and replaced ; with tab - ran this (using fs=tab but fs=,
also works, not fs=;):
GRASS 6.4.2svn (nc_spm_07):~ > v.in.ascii input=InputForGRASS_rev.csv
out=test skip=1 fs=tab col='x integer, y integer, z integer'
Scanning input for column types...
Maximum input row length: 23
Maximum number of columns: 3
Minimum number of columns: 3
Column: 1 type: integer
Column: 2 type: integer
Column: 3 type: integer
Importing points...
100%
Populating table...
Building topology for vector map <test>...
Registering primitives...
80 primitives registered
80 vertices registered
Building areas...
100%
0 areas built
0 isles built
Attaching islands...
Attaching centroids...
100%
Number of nodes: 80
Number of primitives: 80
Number of points: 80
Number of lines: 0
Number of boundaries: 0
Number of centroids: 0
Number of areas: 0
Number of isles: 0
v.in.ascii complete.
GRASS 6.4.2svn (nc_spm_07):~ >
I attach the revised input file.
Jon
> Hello,
>
> I try to import Points from a comma separated file in GRASS 6.4.2SVN on
> my Mac OS X but somehow I fail...
>
> The original file is a 3-column Excelsheet (ID,X,Y). I saved that sheet as
> a *csv in my Excel 2011 on Mac OS X and then I try to import it. I follow
> the steps in this video (exept that I am working on
> Mac):http://www.youtube.com/watch?v=JgQBPoJeeLY
>
> (Tue Jan 24 11:05:42 2012)
> v.in.ascii input=/Users/.../InputForGRASS.csv output=Stations fs=; skip=1
> x=2 y=3
> Scanning input for column types...
> Maximum input row length: 31
> Maximum number of columns: 2
> Minimum number of columns: 2
> ERROR: y column number > minimum last column number
> (incorrect field separator?)
> (Tue Jan 24 11:05:42 2012) Command finished (0 sec)
>
>
> So I opened the file with textwrangler to check it. I changed the line
> endings from the original mac endings(CR) to Unix style (LF) and saved the
> file again, but I get the same error. I don't know what I am doing wrong.
> Even if I copy and paste the coordinates from the text file into the
> dialog I get the error. I also tried it with G6.5SVN (some weeks old)
>
> I attached the original *.csv file so maybe someone of you can tell me
> what is wrong with my import.
>
> Thanks for your help in advance.
>
> /johannes
> --
> "Feel free" - 10 GB Mailbox, 100 FreeSMS/Monat ...
> Jetzt GMX TopMail testen: http://www.gmx.net/de/go/topmail
> _______________________________________________
> grass-user mailing list
> grass-user@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/grass-user
>
120870 3529661 6052308
123059 3519474 6038795
123117 3519927 6044452
123187 3534862 6058429
123194 3521305 6035384
123228 3526274 6048187
123230 3525100 6044255
123236 3516149 6030511
123298 3523477 6046898
123311 3528615 6051164
123318 3531980 6057587
123319 3533401 6058896
123325 3532548 6053895
123328 3532583 6059595
123329 3533452 6061183
123342 3532485 6066305
123344 3534679 6067099
Messstellen-Nr. Rechtswert Hochwert
123345 3536606 6067452
123358 3529603 6063870
123361 3527700 6061450
123362 3527254 6060507
123366 3526057 6058588
123369 3525404 6055498
123371 3522748 6052290
123375 3521508 6048397
123387 3537397 6064480
123394 3524307 6052971
123424 3533464 6064274
123426 3522502 6051474
123429 3531955 6064723
123432 3513372 6035152
123433 3509557 6032711
123435 3529924 6035791
123436 3525893 6036237
123440 3521979 6046903
123442 3521316 6040219
123443 3515628 6027082
123445 3506684 6028015
123446 3521872 6050205
123479 3520531 6049677
123522 3522318 6048621
123523 3525507 6050701
123524 3528712 6054925
123561 3522641 6062657
123562 3520614 6057448
123579 3520581 6034385
123580 3526840 6060238
123591 3509192 6028321
123592 3510902 6028874
123593 3511914 6029051
123692 3521084 6034824
123693 3520254 6033621
123694 3518742 6032229
123695 3517609 6029981
123696 3517157 6028494
123697 3516079 6027016
123698 3512022 6028594
123699 3509634 6028411
123700 3507369 6028136
123721 3544385 6062432
123724 3528571 6066333
123787 3544528 6065441
123824 3545455 6062619
123825 3536240 6064152
123826 3538486 6065243
123827 3541663 6062782
123828 3537652 6063749
123829 3537514 6062836
123830 3536791 6061068
123831 3537689 6060510
123832 3527929 6063447
123833 3523783 6055028
123834 3520121 6051682
123835 3518665 6052307
123836 3523424 6040485
123837 3525506 6042275
123873 3527528 6061656
123874 3527758 6061163
123875 3528071 6060973
123876 3520780 6042404
123877 3521336 6045124
_______________________________________________
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user