<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style id="owaParaStyle" type="text/css">P {margin-top:0;margin-bottom:0;}</style>
</head>
<body ocsi="0" fpstyle="1">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">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..... <br>
<br>
Have you tried doing it from the command line? (yes, you should work in a linux environment ;)<br>
<br>
Martin<br>
<br>
<br>
<div style="font-family: Times New Roman; color: #000000; font-size: 16px">
<hr tabindex="-1">
<div style="direction: ltr;" id="divRpF892032"><font color="#000000" face="Tahoma" size="2"><b>Fra:</b> grass-user-bounces@lists.osgeo.org [grass-user-bounces@lists.osgeo.org] på vegne av Andrés Silva [andres.silva.m@gmail.com]<br>
<b>Sendt:</b> 7. desember 2012 13:05<br>
<b>To:</b> GRASS Users list<br>
<b>Emne:</b> [GRASS-user] v.in.lines not working in Python script<br>
</font><br>
</div>
<div></div>
<div>I get the following error when I use v.in.lines in a Python Script in Windows (sorry):
<div><br>
</div>
<div>
<div>"<b>C:\Program Files\GRASS 6.4.2\scripts\v.in.lines: 126: v.in.mapgen: command not found</b>"</div>
<div><br>
</div>
<div>My script It's quite simple:</div>
<div><br>
</div>
<div><b>import grass.script as g</b></div>
<div><b>g.run_command('v.in.lines', input='points.txt', output='contour')<br>
</b></div>
</div>
<div><b><br>
</b></div>
<div>And my point.txt file:</div>
<div><br>
</div>
<div>
<div>-71.20805823448374|-30.59771251456061</div>
<div>-71.20765621447394|-30.59745831224444</div>
<div>-71.20736018153805|-30.59778541778508</div>
<div>-71.20648094588758|-30.59723716721055</div>
<div>-71.20723941992262|-30.59621434252238</div>
<div>-71.20833309148421|-30.59734839427609</div>
<div>-71.20805823448374|-30.59771251456061</div>
</div>
<div><br>
</div>
<div>Others commands work find (like v.in.ascii)... and v.in.mapgen is in the folder.</div>
<div><br>
</div>
<div>Any idea?</div>
<div><br clear="all">
<div><b>Andrés Silva Marambio</b><br>
Ingeniero Agrónomo, Mención en Gestión Ambiental<br>
Pontificia Universidad Católica de Valparaíso<br>
</div>
<br>
</div>
</div>
</div>
</div>
</body>
</html>