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

Hamish hamish_nospam at yahoo.com
Sun Nov 7 20:35:42 EST 2004


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 7169.0.dig
Type: application/octet-stream
Size: 300 bytes
Desc: not available
Url : http://lists.osgeo.org/pipermail/grass-dev/attachments/20041108/75eb8777/7169.0.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: vinascii.log
Type: application/octet-stream
Size: 4181 bytes
Desc: not available
Url : http://lists.osgeo.org/pipermail/grass-dev/attachments/20041108/75eb8777/vinascii.obj


More information about the grass-dev mailing list