[GRASS-user] Fwd: my first script

Anna Petrášová kratochanna at gmail.com
Tue Oct 14 17:40:51 PDT 2014


Forwarded back to mailing list:

---------- Forwarded message ----------
From: Giuliano Urgeghe <giuliano.u at gmail.com>
Date: Tue, Oct 14, 2014 at 8:22 PM
Subject: Re: [GRASS-user] my first script
To: Anna Petrášová <kratochanna at gmail.com>


Cara Anna,

my script is ok with v.in.ascii

but with v.in.lines return this error
C:/Program Files/GRASS GIS 6.4.4/scripts/v.in.lines: line
126: v.in.mapgen: command not found
(Wed Oct 15 02:00:03 2014) Comando terminato (4 sec)

where 's the problem now?

how do I make a list of points (x, y) in a polyline if v.in.lines is ko!

ciao




2014-10-15 1:54 GMT+02:00 Anna Petrášová <kratochanna at gmail.com>:

>
>
> On Tue, Oct 14, 2014 at 7:37 PM, Giuliano Urgeghe <giuliano.u at gmail.com>
> wrote:
>
>> Ciao Anna
>> problema risolto
>> usando ','
>>
>
> I guess this means success:)
>
> Best,
>
> Anna
>
>
>>
>> GRAZIE
>>
>> 2014-10-15 0:10 GMT+02:00 Giuliano Urgeghe <giuliano.u at gmail.com>:
>>
>>> just to say that I also tried with fs=','
>>> and I had the same error:
>>>
>>> "output" non Š riconosciuto come comando interno o esterno,
>>>  un programma eseguibile o un file batch.
>>>
>>> which module is contained in this response string?
>>>
>>>
>>>
>>> 2014-10-14 23:19 GMT+02:00 Giuliano Urgeghe <giuliano.u at gmail.com>:
>>>
>>>> Hi Anna,
>>>> thanks for your interest
>>>> I checked
>>>> my fs in the input is '|'
>>>> the word 'output' in grass.run.command's argument is not known
>>>> is an error in core.py? or is a bug in windows executing?
>>>>
>>>> I don't find solution
>>>> Bye
>>>> Giuliano
>>>>
>>>>
>>>> 2014-10-14 3:45 GMT+02:00 Anna Petrášová <kratochanna at gmail.com>:
>>>>
>>>>>
>>>>>
>>>>> On Mon, Oct 13, 2014 at 5:53 PM, Giuliano Urgeghe <
>>>>> giuliano.u at gmail.com> wrote:
>>>>>
>>>>>> Hi,
>>>>>> thanks for your help.
>>>>>> At moment I have another problem
>>>>>> in my script I have this line:
>>>>>> #    grass.run_command('v.in.lines', overwrite=True, input =
>>>>>> output_esond_txt , output = output_esond_gis, fs='|')
>>>>>>     grass.run_command('v.in.ascii', overwrite=True, format= 'point',
>>>>>> fs='|', input = output_esond_txt, output = output_esond_gis )
>>>>>>
>>>>>> output is:
>>>>>> "output" non Š riconosciuto come comando interno o esterno,
>>>>>>  un programma eseguibile o un file batch.
>>>>>>
>>>>>
>>>>> Not sure, but could you try use different separator
>>>>>
>>>>> grass.run_command('v.in.ascii', overwrite=True, format= 'point',
>>>>> fs=',', input = output_esond_txt, output = output_esond_gis )
>>>>>
>>>>> or, since | is a default, not using it in the command at all?
>>>>>
>>>>> grass.run_command('v.in.ascii', overwrite=True, format= 'point', input
>>>>> = output_esond_txt, output = output_esond_gis )
>>>>>
>>>>> Anna
>>>>>
>>>>>
>>>>>> why?
>>>>>> I have made many attempts whith grass6.4.2  grass6.4.3  grass6.4.4
>>>>>> in windows Vista
>>>>>>
>>>>>> you know the problem?
>>>>>>
>>>>>> thanks in advance
>>>>>> Giuliano
>>>>>>
>>>>>> 2014-10-13 7:43 GMT+02:00 Johannes Radinger <
>>>>>> johannesradinger at gmail.com>:
>>>>>>
>>>>>>> Hi,
>>>>>>>
>>>>>>> It seems to raise an error related to the flag(s) you are specifying
>>>>>>> in oneof your grass modules you are using in your script. Flags in grass
>>>>>>> python scripts should be used like: flags="a" or for two flags: flags="ab".
>>>>>>> Note this does not need a "-" like in the bash command.
>>>>>>>
>>>>>>> Best,
>>>>>>> /johannes
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> -------- Original message --------
>>>>>>> From: Giuliano Urgeghe <giuliano.u at gmail.com>
>>>>>>> Date: 13/10/2014 02:44 (GMT+01:00)
>>>>>>> To: grass-user at lists.osgeo.org
>>>>>>> Subject: [GRASS-user] my first script
>>>>>>>
>>>>>>>
>>>>>>> Hi all,
>>>>>>> I have my first script in python for grass
>>>>>>> but when I launch it on windows vista for grass 6.4.2 in quantum gis
>>>>>>> I have this output:
>>>>>>> ...
>>>>>>> File "C:\PROGRA~1\QUANTU~3\apps\grass\grass-6.4.2\etc\pyth
>>>>>>> on\grass\script\core.py", line 189, in run_command
>>>>>>>     ps = start_command(*args, **kwargs)
>>>>>>>   File "C:\PROGRA~1\QUANTU~3\apps\grass\grass-6.4.2\etc\pyth
>>>>>>> on\grass\script\core.py", line 167, in start_command
>>>>>>>     args = make_command(prog, flags, overwrite, quiet,
>>>>>>> verbose, **options)
>>>>>>>   File "C:\PROGRA~1\QUANTU~3\apps\grass\grass-6.4.2\etc\pyth
>>>>>>> on\grass\script\core.py", line 124, in make_command
>>>>>>>     raise ScriptError("'-' is not a valid flag")
>>>>>>> grass.script.core.ScriptError: "'-' is not a valid flag"
>>>>>>>
>>>>>>> someone know this problem?
>>>>>>>
>>>>>>> thanks in advance
>>>>>>> Giuliano
>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> _______________________________________________
>>>>>> grass-user mailing list
>>>>>> grass-user at lists.osgeo.org
>>>>>> http://lists.osgeo.org/mailman/listinfo/grass-user
>>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> Ing. Giuliano Urgeghe
>>>> Via Prunizzedda 61 - 07100 Sassari
>>>> giuliano.u at gmail.com
>>>> tel. 3283268186
>>>>
>>>> Cerca di non inviarmi files .doc, .xls, .ppt, .dwg
>>>> Preferisco formati liberi.
>>>> Please try to avoid to send me .doc, .xls, .ppt, .dwg files.
>>>> I prefer free formats.
>>>> http://it.wikipedia.org/wiki/Formato_aperto
>>>> http://en.wikipedia.org/wiki/Open_format
>>>>
>>>>
>>>>
>>>
>>>
>>> --
>>> Ing. Giuliano Urgeghe
>>> Via Prunizzedda 61 - 07100 Sassari
>>> giuliano.u at gmail.com
>>> tel. 3283268186
>>>
>>> Cerca di non inviarmi files .doc, .xls, .ppt, .dwg
>>> Preferisco formati liberi.
>>> Please try to avoid to send me .doc, .xls, .ppt, .dwg files.
>>> I prefer free formats.
>>> http://it.wikipedia.org/wiki/Formato_aperto
>>> http://en.wikipedia.org/wiki/Open_format
>>>
>>>
>>>
>>
>>
>> --
>> Ing. Giuliano Urgeghe
>> Via Prunizzedda 61 - 07100 Sassari
>> giuliano.u at gmail.com
>> tel. 3283268186
>>
>> Cerca di non inviarmi files .doc, .xls, .ppt, .dwg
>> Preferisco formati liberi.
>> Please try to avoid to send me .doc, .xls, .ppt, .dwg files.
>> I prefer free formats.
>> http://it.wikipedia.org/wiki/Formato_aperto
>> http://en.wikipedia.org/wiki/Open_format
>>
>>
>>
>


-- 
Ing. Giuliano Urgeghe
Via Prunizzedda 61 - 07100 Sassari
giuliano.u at gmail.com
tel. 3283268186

Cerca di non inviarmi files .doc, .xls, .ppt, .dwg
Preferisco formati liberi.
Please try to avoid to send me .doc, .xls, .ppt, .dwg files.
I prefer free formats.
http://it.wikipedia.org/wiki/Formato_aperto
http://en.wikipedia.org/wiki/Open_format
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-user/attachments/20141014/6b2e7463/attachment-0001.html>


More information about the grass-user mailing list