[GRASS-user] How to convert from point to line ?
Hamish
hamish_b at yahoo.com
Sat Oct 10 18:50:51 EDT 2009
If you search in the mailing list archives you'll find a script
I wrote for someone some months ago to do this. (that was for
animal tracks IIRC). Input format is always different, so it's
hard, but possible, to come up with an automatic solution.
as mentioned by others, the typical solution is to use v.in.ascii
format=standard. See also v.in.mapgen but that doesn't give
you the line numbers.
Hamish
SGW00412 wrote:
> I am a beginner user of grass gis.
>
> I want to import a text file that included latitude,
> longitude,ID number and
> recordig time, into grass as line data.
>
> The format style is as follows:
>
> id,x,y,time
> 1,857.8629761,-785.6849976,1
> 1,987.9949951,-682.4140015,2
> 1,964.4849854,-710.6849976,3
> 2,1689.578979,-1070.564941,4
> 2,1654.074951,-1061.333008,5
> 2,1618.218018,-1040.505981,6
> 3,2335.930908,-1180.246948,7
> 3,2336.694092,-1197.869019,8
> 3,2336.658936,-1218.124023,9
> 4,2512.673096,-1689.875977,10
> 4,2494.010986,-1710.625977,11
> 5,1826.724976,-1731.743042,12
> 5,1808.57605,-1726.490967,13
> 5,1793.598999,-1723.034058,14
> .....
> .....
> .....
> .....
>
>
> Firstly I intended to use 'v in ascii' command.
>
> However, this command imports a text data into points, I
> think.
>
> I want to import this text file into grass as line data
> according to the ID
> number.
>
> May this question be solved in grass? If it is so, please
> teach a solution....
>
> Yasuo shimada: Japan weather assocation.
> _______________________________________________
> grass-user mailing list
> grass-user at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/grass-user
>
More information about the grass-user
mailing list