<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Hamish wrote:
<blockquote cite="mid:701310.57858.qm@web45809.mail.sp1.yahoo.com"
type="cite">
<pre wrap="">Richard Chirgwin wrote:
</pre>
<blockquote type="cite">
<pre wrap="">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?
</pre>
</blockquote>
<pre wrap=""><!---->
You will have to do 'v.in.ascii -n format=standard'
L n
x1 y1
x2 y2
...
xn yn
</pre>
</blockquote>
Hamish,<br>
<br>
The file looks like this:<br>
L 1<br>
153.125 -30.2341<br>
153.108 -30.2577<br>
L 2<br>
153.125 -30.2341<br>
153.108 -30.2577<br>
<br>
- and the command like this:<br>
v.in.ascii -n input=lines2.txt output=testlines format=standard fs=|
skip=0 --overwrite <br>
<br>
But it's failing:<br>
Error reading ASCII file: (unknown type) [153.108 -30.2577]<br>
<br>
I can't decide whether this indicates a formatting problem with the
ASCII file (I'm only using an ordinary text editor) or a bug in
v.in.ascii.<br>
<br>
Richard<br>
<br>
<blockquote cite="mid:701310.57858.qm@web45809.mail.sp1.yahoo.com"
type="cite">
<pre wrap="">
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. <a class="moz-txt-link-freetext" href="http://tools.search.yahoo.com/newsearch/category.php?category=shopping">http://tools.search.yahoo.com/newsearch/category.php?category=shopping</a>
</pre>
</blockquote>
<br>
</body>
</html>