[GRASS5] v.in.ascii problems
Hamish
hamish_nospam at yahoo.com
Thu Oct 21 23:51:15 EDT 2004
> In GRASS 5.7, I¹ve used v.in.ascii in the past to import point files
> to vector points. It is supposed to also import ascii vector files and
> convert them to binary. I tried it today and it didn¹t work. To test
> it, I exported a small vector file to ascii_using v.out.ascii. I tried
> it with the ver. 4 flag checked and unchecked (it gave me identical
> results in this case). Then I tried to import the same file. Here is
> the output:
>
> v.in.ascii input=vector_test_ver4 output=vector_test
> WARNING: The vector 'vector_test' already exists and will be
> overwritten.uilding topology ...
> Registering lines:
> 1 primitives registered
> Building areas: 100%0 areas built
> 0 isles built
> Attaching islands:
>
> Attaching centroids: 100%
>
> Topology was built.
> Number of nodes : 2
> Number of primitives: 1
> Number of points : 0
> Number of lines : 1
> Number of boundaries: 0
> Number of centroids : 0
> Number of areas : 0
> Number of isles : 0
>
>
> The line actually has 53 nodes. When I go to display it, there is
> nothing to display.
Ok, the only problem is that we need to write a glossary. (great task
for a wiki..)
Your line is made up of 53 vertices, 2 nodes (end points), and
1 primitive (the line). So the above is actually correct.
g.region vect=vector_test
d.vect vector_test
works.
'v.digit vector_test' may explain what the nodes are more clearly.
Hamish
More information about the grass-dev
mailing list