Michael Barton a écrit :
Emmanuel,

Here are some ideas

Is the region correct? That is, do these coordinates occur in your region
(check extents and resolution using g.region -gp or directly from the menu)?

Are the end of line/carriage return characters correct? You are on a Linux
system which ought to produce the correct ones, but it's worth checking.

Try a different field separator. Try a comma.

Change your column  names. Using "nul" and/or "val" could be problematic

Michael


On 5/29/07 2:07 AM, "Poizot Emmanuel" <[EMAIL PROTECTED]> wrote:

gary a écrit :
When I had a similar problem, I ended up using csv file from a
spreadsheet as the input file.

Otto Dassau wrote:
Hi,
for me (GRASS 6.3cvs) the import of your test data works, the syntax is
correct. Maybe you need to check your test.txt for <space> values in
your
columns etc?
regards,
 Otto

On Tue, 29 May 2007 09:31:38 +0200
Poizot Emmanuel <[EMAIL PROTECTED]> wrote:

Hi all,

I'm unable to input  text file in GRASS using v.in.ascii.
I'm (trying) working on GRASS 6.2.1 under Ubuntu Fiesty


I have a text file (test.txt) which containing:
1|3.5|43.6|2.3
2|3.55|43.605|1.2
3|3.51|43.621|-2.3
4|3.485|43.704|56.1
5|3.498|43.5|7.1058

I would like to import it in a new layer with the following command:
cat test.txt | v.in.ascii  out=test columns='nul int, x double, y
double, val double' fs="|" x=2 y=3 z=0

and the outputs of that command is:

Maximum input row length: 20
Maximum number of columns: 4
Minimum number of columns: 4
column: 1  type: integer
column: 2  type: double
column: 3  type: double
column: 4  type: double
Building topology ...
0 primitives registered     0 areas built     0 isles built
Attaching islands:
Attaching centroids: Topology was built.
Number of nodes     :   0
Number of primitives:   0
Number of points    :   0
Number of lines     :   0
Number of boundaries:   0
Number of centroids :   0
Number of areas     :   0
Number of isles     :   0

So no points are imported in the layer.
I turn around that problem wich normally should work, as what I raed
everywhere, but not for me !!

Regards

E. POIZOT

_______________________________________________
grassuser mailing list
[email protected]
http://grass.itc.it/mailman/listinfo/grassuser


Hi,

I check for spaces on columns, misllaneous character, etc. The text file
is clean.
I also check the bounadries of my region settings and it's ok, the
points are inside it.
I just produced a CSV file from a spreadsheet, and still not work.

How to know what happend durin v.in.ascii execution (debug or a log file) ?

Regards

EP

__________________________________________
Michael Barton, Professor of Anthropology
School of Human Evolution & Social Change
Center for Social Dynamics & Complexity
Arizona State University

phone: 480-965-6213
fax: 480-965-7671
www: http://www.public.asu.edu/~cmbarton




Hi all,

I found the problem, now it's working.
I think it was a problem of rights at the group level. I explain:
I wanted to work on a directory located on a server (Debian).
I did create without problems the GRASS database and the mapset.
But using the v.in.ascii command in debug mode, I discovered that there was a problem with a .tmp file which couldn't be deleted. I dedided then to move the entire directory on the local machine on which I was running GRASS and then everything becomes ok.
Thanks all for your help.
As I'm starting using GRASS more deeply now, I guess we will have occasions to talk again :)
Regards

EP

--
Cordialement

------------------------------------------------
Emmanuel Poizot
Cnam/Intechmer
B.P. 324
50103 Cherbourg Cedex

Phone (Direct) : (00 33)(0)233887342
Fax : (00 33)(0)233887339
------------------------------------------------

begin:vcard
fn:Emmanuel Poizot
n:Poizot;Emmanuel
org:Cnam;Intechmer
adr:;;B.P. 324;Cherbourg;;50103;France
email;internet:[EMAIL PROTECTED]
title;quoted-printable:Ing=C3=A9nieur d'Etudes
tel;work:(0033)(0)233887342
tel;fax:(0033)(0)233887339
x-mozilla-html:FALSE
url:http://www.intechmer.cnam.fr
version:2.1
end:vcard

_______________________________________________
grassuser mailing list
[email protected]
http://grass.itc.it/mailman/listinfo/grassuser

Reply via email to