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

Rainer M Krug R.M.Krug at gmail.com
Fri Feb 22 06:13:21 PST 2013


-----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
> process and export, but maybe I can understand it after getting import).
> 
> I've this functionality working on a "Python script", but I hope to get better performance
> writing this application in C language (source is very large).
> 
> I've read the documentation and I've inspected the examples (v.example) without success.

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

Cheers,

Rainer

> 
> I'm learning to program in C, so it is difficult to me. Please, I need some guidance or
> suggestions. Maybe someone can point me to the best example of that case.
> 
> Thank in advance! Jos← Mar■a Michia _______________________________________________ grass-user
> mailing list grass-user at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
> 

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBAgAGBQJRJ30BAAoJENvXNx4PUvmCwUcH/ifVNS8Tfy9SGZ94gt2s9llg
jllvt4P3Gc+f9CRTq4VImTcKFXGXj9ao4YAJIyVAGeybVMk8byJgPnh6QNAwfGbC
cBk/0Uwof+FOM4P2B4Vp+HAW7Kbbo6PtMIB5J8gbDMp2O3n1Q3ubymOvnJWvf2hV
8L4vKRbSJyL0LVO4W91owAywkt3rpKK02T+rcoD3ZCywa9CFsrcT41lmZOWnhrFp
PZjB0JKlXtoaEplNuHZQVLvxpjp3RaKV3coesKtJ7mKO+WS/LIngZN8KCjjGCo+t
1nKtdCGLfZ4UNY3vi11nINSsSnJdYGiz38MC4ayXM6RwZoQrtDtQQc3/2DnWAr8=
=13vo
-----END PGP SIGNATURE-----



More information about the grass-user mailing list