[GRASS-dev] Re: [SoC] Improve multicriteria analysis tools (porting add-on to GRASS7)

Greetings!

For my Google Summer of Code proposal, I would like to benfit from the
good work of Gianluca Massei and Antonio Boggia on the MCDA add-on.
Also, I think it could be pertinent to make my development in GRASS7.

It seems to have many changes in raster modules between GRASS6 and
GRASS7. I would like to know if I can find documentation about porting
GRASS6 add-on to GRASS7.

Best regards,

Jean-Denis

On Mon, Apr 5, 2010 at 9:25 PM, Jean-Denis Giguere
<jdenisgiguere@gmail.com> wrote:
...

It seems to have many changes in raster modules between GRASS6 and
GRASS7. I would like to know if I can find documentation about porting
GRASS6 add-on to GRASS7.

It requires several updates to the new raster library architecture.
Basically, the "raster.h" header must be added and functions renamed,
for example

  G_put_raster_row() -> Rast_put_row()
etc.

For an overview table, see
http://trac.osgeo.org/grass/wiki/Grass7/RasterLib/ListOfFunctions

A good idea is also to compare modules between GRASS 6.5 and 7.

Best
Markus

Thank you very much Markus!

Following your instructions, the modification was mostly straightforward.
I also needed to add $(RASTERLIB) to LIBES and $(RASTERDEP) to
DEPENDENCIES in the Makefile.

Since I didn't test well the whole thing, I set up a mercurial
repository. Interested people may follow development at
http://bitbucket.org/jdenisgiguere/grass-mcda/

Regards,

2010/4/5 Markus Neteler <neteler@osgeo.org>:

On Mon, Apr 5, 2010 at 9:25 PM, Jean-Denis Giguere
<jdenisgiguere@gmail.com> wrote:
...

It seems to have many changes in raster modules between GRASS6 and
GRASS7. I would like to know if I can find documentation about porting
GRASS6 add-on to GRASS7.

It requires several updates to the new raster library architecture.
Basically, the "raster.h" header must be added and functions renamed,
for example

G_put_raster_row() -> Rast_put_row()
etc.

For an overview table, see
http://trac.osgeo.org/grass/wiki/Grass7/RasterLib/ListOfFunctions

A good idea is also to compare modules between GRASS 6.5 and 7.

Best
Markus