Re: [GRASS-dev] erratic behavior of v.in.ascii with WinGRASS

2008-02-08 Thread Glynn Clements
Moritz Lennert wrote: > > Will have to debug some more... > > Have gotten a bit further. It seems that the problem is in > lib/db/dbmi_base/xdr.c with the readn function, when executing the > function read at line 40. > > Glynn, any hints for futher debugging ? Ick. It might be a protocol is

Re: [GRASS-dev] erratic behavior of v.in.ascii with WinGRASS

2008-02-07 Thread Moritz Lennert
On 07/02/08 11:58, Moritz Lennert wrote: Will have to debug some more... Have gotten a bit further. It seems that the problem is in lib/db/dbmi_base/xdr.c with the readn function, when executing the function read at line 40. Glynn, any hints for futher debugging ? Moritz ___

Re: [GRASS-dev] erratic behavior of v.in.ascii with WinGRASS

2008-02-07 Thread Moritz Lennert
On 07/02/08 15:32, Michael Barton wrote: Thanks Moritz. I see now that it is even more complicated than I thought. A different issue on Windows than on a Mac. The good news is that it seems to work OK with a good file. Yes, but on GNU/Linux it works very well even with the "bad" file. Morit

Re: [GRASS-dev] erratic behavior of v.in.ascii with WinGRASS

2008-02-07 Thread Michael Barton
Thanks Moritz. I see now that it is even more complicated than I thought. A different issue on Windows than on a Mac. The good news is that it seems to work OK with a good file. Michael C. Michael Barton, Professor of Anthropology Director of Graduate Studies School of

Re: [GRASS-dev] erratic behavior of v.in.ascii with WinGRASS

2008-02-07 Thread Glynn Clements
Michael Barton wrote: > > If the string is parsed by the shell, it needs to be quoted, otherwise > > it doesn't. > > > >> Given these tests and what Glynn said (subsequent post), it seems > >> safest to always quote or escape the | character in v.in.ascii. In > >> this regard, is there a problem

Re: [GRASS-dev] erratic behavior of v.in.ascii with WinGRASS

2008-02-07 Thread Moritz Lennert
On 05/02/08 17:17, Michael Barton wrote: On Feb 5, 2008, at 8:48 AM, Moritz Lennert wrote: I would rather guess that depending on how the command line was formulated, i.e. where the fs=| is placed, the command runs correctly with the default values (i.e. '|' as seperator) or doesn't. No

Re: [GRASS-dev] erratic behavior of v.in.ascii with WinGRASS

2008-02-06 Thread Hamish
> Michael: > > As an aside, the | character seems like an odd default separator > > for data fields in GRASS. I suppose it's a holdover from the > > ancient past. But the fact that this is also has meaning as a pipe > > seems to make it a risky separator in general. What about switching > > this to

Re: [GRASS-dev] erratic behavior of v.in.ascii with WinGRASS

2008-02-06 Thread Moritz Lennert
On 06/02/08 19:03, Glynn Clements wrote: Moritz Lennert wrote: I would rather guess that depending on how the command line was formulated, i.e. where the fs=| is placed, the command runs correctly with the default values (i.e. '|' as seperator) or doesn't. Not in the case of my Mac gui crash

Re: [GRASS-dev] erratic behavior of v.in.ascii with WinGRASS

2008-02-06 Thread Glynn Clements
Moritz Lennert wrote: > >> I would rather guess that depending on how the command line was > >> formulated, i.e. where the fs=| is placed, the command runs correctly > >> with the default values (i.e. '|' as seperator) or doesn't. > >> > > > > Not in the case of my Mac gui crash. Exact same co

Re: [GRASS-dev] erratic behavior of v.in.ascii with WinGRASS

2008-02-06 Thread Michael Barton
On Feb 6, 2008, at 10:41 AM, Glynn Clements wrote: Michael Barton wrote: It looks like the '|' is partly to blame, but not entirely. If I use the original file with missmatched numbers of fields between records AND use the '|' separator, I have trouble on my Mac. However, if I fix the fil

Re: [GRASS-dev] erratic behavior of v.in.ascii with WinGRASS

2008-02-06 Thread Glynn Clements
Michael Barton wrote: > >> It looks like the '|' is partly to blame, but not entirely. > >> If I use the original file with missmatched numbers of fields > >> between records AND use the '|' separator, I have trouble on my Mac. > >> However, if I fix the file so that all records have the same

Re: [GRASS-dev] erratic behavior of v.in.ascii with WinGRASS

2008-02-06 Thread Moritz Lennert
On 05/02/08 17:17, Michael Barton wrote: On Feb 5, 2008, at 8:48 AM, Moritz Lennert wrote: I would rather guess that depending on how the command line was formulated, i.e. where the fs=| is placed, the command runs correctly with the default values (i.e. '|' as seperator) or doesn't. No

Re: [GRASS-dev] erratic behavior of v.in.ascii with WinGRASS

2008-02-05 Thread Markus Neteler
On Feb 5, 2008 4:08 PM, Michael Barton <[EMAIL PROTECTED]> wrote: > > On Feb 5, 2008, at 5:44 AM, Moritz Lennert wrote: > > > On 05/02/08 06:00, Michael Barton wrote: > >> Hi Helena, > >> It looks like the '|' is partly to blame, but not entirely. > >> If I use the original file with missmatched nu

Re: [GRASS-dev] erratic behavior of v.in.ascii with WinGRASS

2008-02-05 Thread Michael Barton
On Feb 5, 2008, at 8:48 AM, Moritz Lennert wrote: I would rather guess that depending on how the command line was formulated, i.e. where the fs=| is placed, the command runs correctly with the default values (i.e. '|' as seperator) or doesn't. Not in the case of my Mac gui crash. Exact

Re: [GRASS-dev] erratic behavior of v.in.ascii with WinGRASS

2008-02-05 Thread Moritz Lennert
On 05/02/08 16:08, Michael Barton wrote: On Feb 5, 2008, at 5:44 AM, Moritz Lennert wrote: On 05/02/08 06:00, Michael Barton wrote: Hi Helena, It looks like the '|' is partly to blame, but not entirely. If I use the original file with missmatched numbers of fields between records AND use the

Re: [GRASS-dev] erratic behavior of v.in.ascii with WinGRASS

2008-02-05 Thread Michael Barton
On Feb 5, 2008, at 5:44 AM, Moritz Lennert wrote: On 05/02/08 06:00, Michael Barton wrote: Hi Helena, It looks like the '|' is partly to blame, but not entirely. If I use the original file with missmatched numbers of fields between records AND use the '|' separator, I have trouble on my Mac.

Re: [GRASS-dev] erratic behavior of v.in.ascii with WinGRASS

2008-02-05 Thread Glynn Clements
Helena Mitasova wrote: > I did few more experiments (with a different file, but still > generated by GRASS - this time using v.out.ascii) > and it indeed looks like the fs=| is responsible > for the truly erratic behavior - I think that without quotes it is > represented as > pipe(?) so dependi

Re: [GRASS-dev] erratic behavior of v.in.ascii with WinGRASS

2008-02-05 Thread Moritz Lennert
On 05/02/08 06:00, Michael Barton wrote: Hi Helena, It looks like the '|' is partly to blame, but not entirely. If I use the original file with missmatched numbers of fields between records AND use the '|' separator, I have trouble on my Mac. However, if I fix the file so that all records ha

Re: [GRASS-dev] erratic behavior of v.in.ascii with WinGRASS

2008-02-04 Thread Michael Barton
Hi Helena, It looks like the '|' is partly to blame, but not entirely. If I use the original file with missmatched numbers of fields between records AND use the '|' separator, I have trouble on my Mac. However, if I fix the file so that all records have the same number of fields (keeping '

Re: [GRASS-dev] erratic behavior of v.in.ascii with WinGRASS

2008-02-04 Thread Helena Mitasova
I did few more experiments (with a different file, but still generated by GRASS - this time using v.out.ascii) and it indeed looks like the fs=| is responsible for the truly erratic behavior - I think that without quotes it is represented as pipe(?) so depending on where you put it you get diff

Re: [GRASS-dev] erratic behavior of v.in.ascii with WinGRASS

2008-02-04 Thread Helena Mitasova
I just emailed you the response - it is the fs=| try to skip it to see what happens. It does not seem to have anything with the data in the file Helena Helena Mitasova Associate Professor Department of Marine, Earth and Atmospheric Sciences 1125 Jordan Hall, Campus Box 8208 North Carolina St

Re: [GRASS-dev] erratic behavior of v.in.ascii with WinGRASS

2008-02-04 Thread Michael Barton
Yet additional information. The file is messy because not all records have the same number of fields. Here is an example of 2 records. 628658.81149001|226880.93032087|9|-|- 636555.15570527|224580.64987627|10|125.6878585815||4|Managed Herbaceous Cover In fact these *should* be 628

Re: [GRASS-dev] erratic behavior of v.in.ascii with WinGRASS

2008-02-04 Thread Helena Mitasova
Michael, my Mac definitely does not like fs=| it imports it correctly without it (as it i the default separator) or when it is "|" Helena g.region rast=elevation v.in.ascii schools_el_lu.txt output=schools_lutest format=point fs=| skip=0 x=1 y=2 z=0 cat=3 Scanning input for column types ...

Re: [GRASS-dev] erratic behavior of v.in.ascii with WinGRASS

2008-02-04 Thread Helena Mitasova
On Feb 4, 2008, at 9:45 PM, Michael Barton wrote: On Feb 4, 2008, at 7:23 PM, Hamish wrote: Michael Barton wrote: I've run into a problem running v.in.ascii for WinGRASS importing an ASCII points file. Sometimes it works OK. Other times, it causes a Windows dbf.exe error but still gets the

Re: [GRASS-dev] erratic behavior of v.in.ascii with WinGRASS

2008-02-04 Thread Michael Barton
On Feb 4, 2008, at 7:23 PM, Hamish wrote: Michael Barton wrote: I've run into a problem running v.in.ascii for WinGRASS importing an ASCII points file. Sometimes it works OK. Other times, it causes a Windows dbf.exe error but still gets the job done. In most cases, it causes a dbf.exe error a

Re: [GRASS-dev] erratic behavior of v.in.ascii with WinGRASS

2008-02-04 Thread Hamish
Michael Barton wrote: > I've run into a problem running v.in.ascii for WinGRASS importing an > ASCII points file. Sometimes it works OK. Other times, it causes a > Windows dbf.exe error but still gets the job done. In most cases, it > causes a dbf.exe error and only imports the first point--wit

[GRASS-dev] erratic behavior of v.in.ascii with WinGRASS

2008-02-04 Thread Michael Barton
I've run into a problem running v.in.ascii for WinGRASS importing an ASCII points file. Sometimes it works OK. Other times, it causes a Windows dbf.exe error but still gets the job done. In most cases, it causes a dbf.exe error and only imports the first point--with a coor error. Here are