[GRASS-user] Import question

Adam Dershowitz, Ph.D., P.E. adershowitz at exponent.com
Fri Oct 1 11:46:53 EDT 2010



On Oct 1, 2010, at 4:06 AM, Micha Silver wrote:

> On 10/01/2010 01:35 AM, Adam Dershowitz, Ph.D., P.E. wrote:
>> I have a series of points in an ascii files that represent points along a line.  I would like to import them as a line, or import and convert to a line.
>> I see that 6.5 has v.in.lines, but I am using 6.4.  Is there any other way to do that conversion?
>> 
>> The data is 3D x,y,z points.  I can just import them using v.in.ascii, but then they are points, with no lines.  Is there another way to either import, directly, or convert?
>> 
>>   
> If it's only one line, then the simplest might be to re-write the ASCII file formated in the GRASS "standard" format, as a line. You'll need to add the header lines, something like:
> VERTI:
> L n 1
> X_coord Y_coord
> ...
> ...
> 1 1
> 
> Where 'n' is the number of points.
> 
> Then run v.in.ascii ... format=standard and it should result in a line vector.



Thanks.  It is actually one line, at the moment, so I did that, and it worked fine.  But I will have others.  so was hoping for a generic solution.  I wrote a shell script that transforms my particular data into "standard" and it seems to be working fine.

Again, thanks for the response.

--Adam


More information about the grass-user mailing list