Re: [GRASS-user] Run a GRASS module from a custom module (C language)

2013-02-26 Thread Glynn Clements
José María Michia Roberts wrote: > I'm still learning! I have found that a simple call to function > "system()" is enough. But I was curious to learn how to use "fork / > exec", and was a bit difficult for me. Note that system() is rather error-prone if you need to be able to pass variable para

Re: [GRASS-user] Run a GRASS module from a custom module (C language)

2013-02-25 Thread José María Michia Roberts
2013/2/22 Rainer M Krug : > Please check out the thread "Call Grass modules from C++ code" > (http://article.gmane.org/gmane.comp.gis.grass.user/46272) > > I assume it is the same for C Thanks Rainer. My apologies for re-post this question. I worked hard looking for a solution, to avoid writing t

Re: [GRASS-user] Run a GRASS module from a custom module (C language)

2013-02-25 Thread Vaclav Petras
On 22 February 2013 14:40, José María Michia Roberts wrote: > I want to write a module to automatically do a large number of > "import/process/export" tasks , but I cannot figure out how to run > "v.in.ogr" from C program (I do not understand how to process and > export, but maybe I can understand

Re: [GRASS-user] Run a GRASS module from a custom module (C language)

2013-02-22 Thread Rainer M Krug
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 22/02/13 14:40, Jos← Mar■a Michia Roberts wrote: > I want to write a module to automatically do a large number of > "import/process/export" tasks , > but I cannot figure out how to run "v.in.ogr" from C program (I do not > understand how to > proc

[GRASS-user] Run a GRASS module from a custom module (C language)

2013-02-22 Thread José María Michia Roberts
I want to write a module to automatically do a large number of "import/process/export" tasks , but I cannot figure out how to run "v.in.ogr" from C program (I do not understand how to process and export, but maybe I can understand it after getting import). I've this functionality working on a "Pyt