[GRASS-user] Importing lines from database

Hamish hamish_b at yahoo.com
Mon Jan 14 03:59:11 EST 2008


Richard Chirgwin wrote:
> I have a database containing pairs of points, each with lat/long. For
> convenience (there are lots of points) I would like to use this (and
> the distance between the points if necessary) to create a vector map 
> containing lines joining the points. This way, I don't have to
> hand-draw a couple of thousand lines.
> 
> I can't see any support in the database import ( v.in.db ) to do this
> - is there some way to create lines directly from my database?

You will have to do 'v.in.ascii -n format=standard'

L n
 x1 y1
 x2 y2
 ...
 xn yn


see v.in.mapgen for an example of automatically applying the number of
vertices with an awk command, but you can probably just paste that
first line in by hand.


Hamish



      ____________________________________________________________________________________
Looking for last minute shopping deals?  
Find them fast with Yahoo! Search.  http://tools.search.yahoo.com/newsearch/category.php?category=shopping



More information about the grass-user mailing list