[GRASS-user] Question with Python-SWIG example

Markus Neteler neteler at osgeo.org
Fri Apr 16 16:56:25 EDT 2010


On Thu, Apr 15, 2010 at 1:22 PM, Glynn Clements
<glynn at gclements.plus.com> wrote:
...
> But I wouldn't recommend trying to use the SWIG interface. It's not
> particularly robust and not widely understood. If you really need to
> use GRASS library functions from Python, use the ctypes module
> instead.

How would
 http://grass.osgeo.org/wiki/GRASS_and_Python#Python-SWIG_examples
look like with ctypes? Perhaps the SWIG interface should not be advertised
to much in the Wiki...

Markus


More information about the grass-user mailing list