[GRASS-user] Re: Lines import - fixed

Hamish hamish_b at yahoo.com
Mon Jan 14 22:20:33 EST 2008


> Hamish wrote:
> > The 'v.in.ascii -n format=standard' equivalent is:
> >
> > L 2
> >  x1 y1
> >  x2 y2
> > L 2
> >  x3 y3
> >  x4 y4

Richard:
> Thanks Hamish - it's working now so please ignore my last message. My
> error was that in selecting out of the database, I had let the cat 
> column appear after the L, so that we had L  2 for the record header
> of the first line, L  3 for the next, and so on - which upset Grass
> on the import.


the syntax for adding cat numbers is:

L n number_of_layers
 x1 y2
 ...
 xn yn
 layer_1 cat#


for example (from the help page)
A 3D line made up of 5 points, single layer with line category # 321.

L 5 1
 591336 4927369 1224
 594317 4925341 1292
 599356 4925162 1469
 602396 4926653 1235
 607524 4925431 1216
 1 321


Hamish



      ____________________________________________________________________________________
Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ 




More information about the grass-user mailing list