[GRASS-user] Creating Vector Line File from Point File

Hi,

Andrew Lewin:
>I would like to create a vector line file from a point file for vessel
>transportation spatial data (LRIT). Each vessel has an ID so I would
>like to have one line per ID. I can't find any method of doing this
>in the help files. I am a beginner at Grass.

what about

v.in.lines - Import ASCII x,y[,z] coordinates as a series of lines.
http://grass.osgeo.org/grass64/manuals/html64_user/v.in.lines.html

best regards
Helmut

Am 13.02.2011 23:20, schrieb Helmut Kudrnovsky:

Hi,

Andrew Lewin:
>I would like to create a vector line file from a point file for vessel
>transportation spatial data (LRIT). Each vessel has an ID so I would
>like to have one line per ID. I can't find any method of doing this
>in the help files. I am a beginner at Grass.

what about

v.in.lines - Import ASCII x,y[,z] coordinates as a series of lines.
http://grass.osgeo.org/grass64/manuals/html64_user/v.in.lines.html

or http://grass.osgeo.org/grass64/manuals/html64_user/v.in.ascii.html

best regards
Helmut

[please keep it on the ML]

what about (from http://grass.osgeo.org/grass64/manuals/html64_user/v.in.ascii.html):

Example 1b) - standard format mode
Sample ASCII 3D line vector map for 'standard' format mode with simplified input (note the space field separator). Note the -z flag indicating 3D vector input, and the -n flag indicating no vector header should be expected from the input file. The example can be tested in the Spearfish sample dataset:

echo "L 5 1
591336 4927369 1224
594317 4925341 1292
599356 4925162 1469
602396 4926653 1235
607524 4925431 1216
1 321 " | v.in.ascii -zn out=line3d format=standard

or an example from http://grass.osgeo.org/grass64/manuals/html64_user/v.in.lines.html:

v.in.lines in=- out=two_lines fs=, <<EOF
167.846717,-46.516653
167.846663,-46.516645
167.846656,-46.516644
167.846649,-46.516644
167.846642,-46.516643
NaN,NaN
167.846520,-46.516457
167.846528,-46.516461
167.846537,-46.516464
167.846535,-46.516486
167.846544,-46.516489
167.846552,-46.516493
EOF

best regards
Helmut

Am 14.02.2011 00:08, schrieb Andrew Lewin:

Hi Helmut,

Thanks for the suggestions; however, I am having some trouble importing the data. How do I create a line data vector layer from the data?

Andrew

Andrew Lewin
andrew.lewin@sympatico.ca

Founder, Speak Up for the Blue
www.speakupforblue.com

President, Spatial-Conserve Incorporated
www.spatialconserve.com

Associate
C-FOAM (Canadian Fisheries, Oceans and Aquaculture Management Group)
Telfer School of Management, University of Ottawa

On 2011-02-13, at 5:25 PM, Helmut Kudrnovsky wrote:

Am 13.02.2011 23:20, schrieb Helmut Kudrnovsky:

Hi,

Andrew Lewin:

I would like to create a vector line file from a point file for vessel
transportation spatial data (LRIT). Each vessel has an ID so I would
like to have one line per ID. I can't find any method of doing this
in the help files. I am a beginner at Grass.

what about

v.in.lines - Import ASCII x,y[,z] coordinates as a series of lines.
http://grass.osgeo.org/grass64/manuals/html64_user/v.in.lines.html

or http://grass.osgeo.org/grass64/manuals/html64_user/v.in.ascii.html

best regards
Helmut