[GRASS-dev] Initial Python GRASS-SWIG interface in CVS

Hi,

I have submitted the Python GRASS-SWIG interface from
Sajith VK [1] with some updates to CVS:

swig/python/

There are still a few replicated include files, I don't
know how to change it to use the standard GRASS include
directory. Also the typemaps need an update.

But since CVS development is much faster, and since the
test.py script works, I thought to better submit it now.

Thanks to Sajith VK for the prototype!

Happy hacking,

Markus

[1] http://grass.itc.it/pipermail/grass-dev/2006-March/021651.html

Hi,

thank you very much! Looking forward to test it! I hope, this will give
new fresh powers to GRASS development (but we will see).

Jachym

On Fri, May 26, 2006 at 09:57:36PM +0200, Markus Neteler wrote:

Hi,

I have submitted the Python GRASS-SWIG interface from
Sajith VK [1] with some updates to CVS:

swig/python/

There are still a few replicated include files, I don't
know how to change it to use the standard GRASS include
directory. Also the typemaps need an update.

But since CVS development is much faster, and since the
test.py script works, I thought to better submit it now.

Thanks to Sajith VK for the prototype!

Happy hacking,

Markus

[1] http://grass.itc.it/pipermail/grass-dev/2006-March/021651.html

_______________________________________________
grass-dev mailing list
grass-dev@grass.itc.it
http://grass.itc.it/mailman/listinfo/grass-dev

--
Jachym Cepicky
e-mail: jachym.cepicky@centrum.cz
URL: http://les-ejk.cz
GPG: http://les-ejk.cz/gnupg_public_key/jachym_cepicky-gpg_public_key.asc
-----------------------------------------
OFFICE:
GDF-Hannover
Mengendamm 16d
30177 Hannover
Germany
e-mail: cepicky@gdf-hannover.de
URL: http://gdf-hannover.de
Tel.: +49 511-39088507

Hi,

it would be good to add an example how to use it
from outside of GRASS. The test.py example needs
to be run within GRASS (Spearfish). But folks maybe
want to call it from external software.

Anyway, it should be easier now to work on it.

Markus

On Fri, May 26, 2006 at 10:18:00PM +0200, Jachym Cepicky wrote:

Hi,

thank you very much! Looking forward to test it! I hope, this will give
new fresh powers to GRASS development (but we will see).

Jachym

On Fri, May 26, 2006 at 09:57:36PM +0200, Markus Neteler wrote:
> Hi,
>
> I have submitted the Python GRASS-SWIG interface from
> Sajith VK [1] with some updates to CVS:
>
> swig/python/
>
> There are still a few replicated include files, I don't
> know how to change it to use the standard GRASS include
> directory. Also the typemaps need an update.
>
> But since CVS development is much faster, and since the
> test.py script works, I thought to better submit it now.
>
> Thanks to Sajith VK for the prototype!
>
> Happy hacking,
>
> Markus
>
> [1] http://grass.itc.it/pipermail/grass-dev/2006-March/021651.html
>
> _______________________________________________
> grass-dev mailing list
> grass-dev@grass.itc.it
> http://grass.itc.it/mailman/listinfo/grass-dev

--
Jachym Cepicky
e-mail: jachym.cepicky@centrum.cz
URL: http://les-ejk.cz
GPG: http://les-ejk.cz/gnupg_public_key/jachym_cepicky-gpg_public_key.asc
-----------------------------------------
OFFICE:
GDF-Hannover
Mengendamm 16d
30177 Hannover
Germany
e-mail: cepicky@gdf-hannover.de
URL: http://gdf-hannover.de
Tel.: +49 511-39088507

hallo,

I tryed to rewrite r.excample to r.copy.py. acessing C code from within
python is something new to me and I'm in trouble now

    G_get_cellhd(name, mapset, &cellhd) < 0)

function needs the cellhd structure reference. how to create&send it to
the fucntion?

Script in atachment, problem is on line 47

Jachym

On Fri, May 26, 2006 at 11:15:51PM +0200, Markus Neteler wrote:

Hi,

it would be good to add an example how to use it
from outside of GRASS. The test.py example needs
to be run within GRASS (Spearfish). But folks maybe
want to call it from external software.

Anyway, it should be easier now to work on it.

Markus

On Fri, May 26, 2006 at 10:18:00PM +0200, Jachym Cepicky wrote:
> Hi,
>
> thank you very much! Looking forward to test it! I hope, this will give
> new fresh powers to GRASS development (but we will see).
>
> Jachym
>
> On Fri, May 26, 2006 at 09:57:36PM +0200, Markus Neteler wrote:
> > Hi,
> >
> > I have submitted the Python GRASS-SWIG interface from
> > Sajith VK [1] with some updates to CVS:
> >
> > swig/python/
> >
> > There are still a few replicated include files, I don't
> > know how to change it to use the standard GRASS include
> > directory. Also the typemaps need an update.
> >
> > But since CVS development is much faster, and since the
> > test.py script works, I thought to better submit it now.
> >
> > Thanks to Sajith VK for the prototype!
> >
> > Happy hacking,
> >
> > Markus
> >
> > [1] http://grass.itc.it/pipermail/grass-dev/2006-March/021651.html
> >
> > _______________________________________________
> > grass-dev mailing list
> > grass-dev@grass.itc.it
> > http://grass.itc.it/mailman/listinfo/grass-dev
>
> --
> Jachym Cepicky
> e-mail: jachym.cepicky@centrum.cz
> URL: http://les-ejk.cz
> GPG: http://les-ejk.cz/gnupg_public_key/jachym_cepicky-gpg_public_key.asc
> -----------------------------------------
> OFFICE:
> GDF-Hannover
> Mengendamm 16d
> 30177 Hannover
> Germany
> e-mail: cepicky@gdf-hannover.de
> URL: http://gdf-hannover.de
> Tel.: +49 511-39088507

_______________________________________________
grass-dev mailing list
grass-dev@grass.itc.it
http://grass.itc.it/mailman/listinfo/grass-dev

--
Jachym Cepicky
e-mail: jachym.cepicky@centrum.cz
URL: http://les-ejk.cz
GPG: http://les-ejk.cz/gnupg_public_key/jachym_cepicky-gpg_public_key.asc
-----------------------------------------
OFFICE:
GDF-Hannover
Mengendamm 16d
30177 Hannover
Germany
e-mail: cepicky@gdf-hannover.de
URL: http://gdf-hannover.de
Tel.: +49 511-39088507

(attachments)

r.copy.py (3.87 KB)