[GRASS-user] v.in.lines not working in Python script

Martin Album Ytre-Eide Martin.Album.Ytre-Eide at nrpa.no
Fri Dec 7 05:51:14 PST 2012

As I remember you might need to have write "NaN|NaN"  after each line in your file. ( I have a python script doing this for a large set of lines). But if you only have one  line this might not be your issue.....

Have you tried doing it from the command line? (yes, you should work in a linux environment ;)


Fra: grass-user-bounces at lists.osgeo.org [grass-user-bounces at lists.osgeo.org] på vegne av Andrés Silva [andres.silva.m at gmail.com]
Sendt: 7. desember 2012 13:05
To: GRASS Users list
Emne: [GRASS-user] v.in.lines not working in Python script

I get the following error when I use v.in.lines in a Python Script in Windows (sorry):

"C:\Program Files\GRASS 6.4.2\scripts\v.in.lines: 126: v.in.mapgen: command not found"

My script It's quite simple:

import grass.script as g
g.run_command('v.in.lines', input='points.txt', output='contour')

And my point.txt file:


Others commands work find (like v.in.ascii)... and v.in.mapgen is in the folder.

Any idea?

Andrés Silva Marambio
Ingeniero Agrónomo, Mención en Gestión Ambiental
Pontificia Universidad Católica de Valparaíso

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-user/attachments/20121207/d767bcab/attachment.html>

More information about the grass-user mailing list