[GRASS5] v.out.ascii / v.in.ascii

Radim Blazek blazek at itc.it
Mon Nov 8 04:26:40 EST 2004


No idea, for me it works, it seems that topology
is built but it is not saved to files.


Vect_build ( &Map, stdout ); Vect_close ( &Map );
in v.in.ascii is the same as in all other modules.

Radim

Hamish wrote:
> Hamish:
> 
>>>after running the latest v.in.ascii on a "new" style vector ascii file:
>>>
>>>VERTI:
>>>L 2 1
>>>x1 y1
>>>x2 y2
>>>1 1
>>>
>>>etc.
>>>
>>>I get the following [v.in.garmin]:
>>>...
>>>Importing with v.in.ascii
>>>Building topology ...
>>>1 primitives registered
>>>0 areas built      0%
>>>0 isles built
>>>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
>>>v.in.garmin: line vector "test5novRTE at mapset" successfully created
> 
> ...
> 
>>>but when I do 'v.info test5novRTE', I get:
>>>ERROR: Cannot open old vector test5novRTE at mapset on level 2
> 
> 
> 
> Radim:
> 
>>Try the same directly with v.in.ascii.
> 
> 
> Same result. (sample file & DEBUG=5 stderr log attached; stdout is as above)
> 
> also
> 
> G57> d.vect test8novTRK
> WARNING: Cannot display areas, topology not available
> 
> [input file (eg attached) only contains lines, they draw ok]
> 
> 
> 
> 
>>What files are in vectors directory.
> 
> 
> $ ls vector/test8novTRK/
> coor  dbln  head  hist
> 
> 
> 
> 
>>Does it help to run v.build?
> 
> 
> Yes. After running v.build everything works as expected.
> 
> [not attached file..]
> 
> G57> v.build test8novTRK
> Building topology ...
> 152 primitives registered
> 0 areas built      8%
> 0 isles built
> Topology was built.
> Number of nodes     :   240
> Number of primitives:   152
> Number of points    :   0
> Number of lines     :   152
> Number of boundaries:   0
> Number of centroids :   0
> Number of areas     :   0
> Number of isles     :   0
> 
> 
> 
> [0 areas built      8%] ????
> 
> Then these files exist:
> 
> G57>  ls vector/test8novTRK/
> cidx  coor  dbln  head  hist  sidx  topo
> 
> 
> 
> thanks, I think v.in|out.ascii modes are much less confusing now.
> 
> Hamish





More information about the grass-dev mailing list