[GRASSLIST:8984] v.in.ascii error

I give up to use grass with fedora core 3. Now I'm runing grass under
Windows Xp. And my problem now is the following:

with th file testar.txt:

x y z
1 1 1
2 2 3
3 3 1
4 4 2
5 5 3
6 6 4

AND THE COMMAND:

v.in.ascii input=/home/salgueit/testar.txt output=testar1_out
format=standard fs=tab skip=1 x=1 y=2 z=3 cat=0 -z

GRASS RETURNED:

Error reading ascii file:
1 1 1

Building topology ...
Registering lines:
0 primitives registered
Building areas:
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

Am I doing something wrong? After I have success with this how can I see
the map generated?

Thanks!

_____________________
Cumprimentos/Best Regards,

Tiago Salgueiro
Nº1010664

Try formatting the file like this:

1|1|1
2|2|3
3|3|1
4|4|2
5|5|3
6|6|4

with | as the field delimiter, and in point rather than standard output format:

v.in.ascii input=/home/salgueit/testar.txt output=testar1_out format=point fs=| skip=1 'columns=x double, y double, z double' x=1 y=2 z=3 cat=0 -z

If that works, view the map by setting the region to match the new vector file (use g.region), opening a diplay monitor and then using the command d.vect to display the new vector file.

eva.

Tiago Salgueiro wrote:

I give up to use grass with fedora core 3. Now I'm runing grass under
Windows Xp. And my problem now is the following:

with th file testar.txt:

x y z
1 1 1
2 2 3
3 3 1
4 4 2
5 5 3
6 6 4

AND THE COMMAND:

v.in.ascii input=/home/salgueit/testar.txt output=testar1_out
format=standard fs=tab skip=1 x=1 y=2 z=3 cat=0 -z

GRASS RETURNED:

Error reading ascii file:
1 1 1

Building topology ...
Registering lines:
0 primitives registered
Building areas:
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

Am I doing something wrong? After I have success with this how can I see
the map generated?

Thanks!

_____________________
Cumprimentos/Best Regards,

Tiago Salgueiro
Nº1010664

--
---------------------------------------------
Eva L. Hulse
PhD Student
University at Buffalo Anthropology Department
evahulse@buffalo.edu

I think it works because now I didn't got any error.
But I don't know how to see the map. I tryed g.region but I don't know
what to put in all fields... Can you help?

Thanks!
Tiago

Try formatting the file like this:

1|1|1
2|2|3
3|3|1
4|4|2
5|5|3
6|6|4

with | as the field delimiter, and in point rather than standard output
format:

v.in.ascii input=/home/salgueit/testar.txt output=testar1_out
format=point fs=| skip=1 'columns=x double, y double, z double' x=1 y=2
z=3 cat=0 -z

If that works, view the map by setting the region to match the new
vector file (use g.region), opening a diplay monitor and then using the
command d.vect to display the new vector file.

eva.

Tiago Salgueiro wrote:

I give up to use grass with fedora core 3. Now I'm runing grass under
Windows Xp. And my problem now is the following:

with th file testar.txt:

x y z
1 1 1
2 2 3
3 3 1
4 4 2
5 5 3
6 6 4

AND THE COMMAND:

v.in.ascii input=/home/salgueit/testar.txt output=testar1_out
format=standard fs=tab skip=1 x=1 y=2 z=3 cat=0 -z

GRASS RETURNED:

Error reading ascii file:
1 1 1

Building topology ...
Registering lines:
0 primitives registered
Building areas:
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

Am I doing something wrong? After I have success with this how can I see
the map generated?

Thanks!

_____________________
Cumprimentos/Best Regards,

Tiago Salgueiro
Nº1010664

--
---------------------------------------------
Eva L. Hulse
PhD Student
University at Buffalo Anthropology Department
evahulse@buffalo.edu

_____________________
Cumprimentos/Best Regards,

Tiago Salgueiro
Nº1010664

You don't have to worry about most of those fields. You can just do:

g.region vect=testar1_out

eva.

Tiago Salgueiro wrote:

I think it works because now I didn't got any error.
But I don't know how to see the map. I tryed g.region but I don't know
what to put in all fields... Can you help?

Thanks!
Tiago

--
---------------------------------------------
Eva L. Hulse
PhD Student
University at Buffalo Anthropology Department
evahulse@buffalo.edu

Try
g.region vect=your_vector_name
d.vect your_vector_name

See the manuals for complete instructions.
http://grass.itc.it/gdp/manuals.php

G'luck
-Ian

On Nov 10, 2005, at 12:50 PM, Tiago Salgueiro wrote:

I think it works because now I didn't got any error.
But I don't know how to see the map. I tryed g.region but I don't know
what to put in all fields... Can you help?

Thanks!
Tiago

Try formatting the file like this:

1|1|1
2|2|3
3|3|1
4|4|2
5|5|3
6|6|4

with | as the field delimiter, and in point rather than standard output
format:

v.in.ascii input=/home/salgueit/testar.txt output=testar1_out
format=point fs=| skip=1 'columns=x double, y double, z double' x=1 y=2
z=3 cat=0 -z

If that works, view the map by setting the region to match the new
vector file (use g.region), opening a diplay monitor and then using the
command d.vect to display the new vector file.

eva.

Tiago Salgueiro wrote:

I give up to use grass with fedora core 3. Now I'm runing grass under
Windows Xp. And my problem now is the following:

with th file testar.txt:

x y z
1 1 1
2 2 3
3 3 1
4 4 2
5 5 3
6 6 4

AND THE COMMAND:

v.in.ascii input=/home/salgueit/testar.txt output=testar1_out
format=standard fs=tab skip=1 x=1 y=2 z=3 cat=0 -z

GRASS RETURNED:

Error reading ascii file:
1 1 1

Building topology ...
Registering lines:
0 primitives registered
Building areas:
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

Am I doing something wrong? After I have success with this how can I see
the map generated?

Thanks!

_____________________
Cumprimentos/Best Regards,

Tiago Salgueiro
Nº1010664

--
---------------------------------------------
Eva L. Hulse
PhD Student
University at Buffalo Anthropology Department
evahulse@buffalo.edu

_____________________
Cumprimentos/Best Regards,

Tiago Salgueiro
Nº1010664

>
What happens if a big asteroid hits Earth? Judging from realistic simulations involving a sledge hammer and a common laboratory frog, we can assume it will be pretty bad.
  - Dave Barry

-------------------------------------------------------------
This message has been scanned by Postini anti-virus software.