GRASS and C++: Difference between revisions

From GRASS-Wiki
Jump to navigation Jump to search
Line 6: Line 6:


I/O:
I/O:
* http://trac.osgeo.org/grass/browser/grass/trunk/lib/iostream/
* {{src|lib/iostream/}}


Raster data processing
Raster data processing
* http://trac.osgeo.org/grass/browser/grass/trunk/raster/r.terraflow/
* {{src|raster/r.terraflow/}}


Image processing
Image processing
* http://trac.osgeo.org/grass/browser/grass/trunk/imagery/i.atcorr/
* {{src|imagery/i.atcorr/}}


Visualization:
Visualization:
* http://trac.osgeo.org/grass/browser/grass/trunk/visualization/xganim/
* {{src|visualization/xganim/}}
* http://trac.osgeo.org/grass/browser/grass/trunk/visualization/wximgview/
* {{src|visualization/wximgview/}}


== Notes ==
== Notes ==

Revision as of 20:53, 5 May 2012

(page to be expanded)

Calling GRASS library functionality in C++

For working examples, see:

I/O:

Raster data processing

Image processing

Visualization:

Notes

When developing C++ code to call a C function you need to specified for the compiler that the gis.h include is C code with:

extern "C" 
{
#include <grass/gis.h>
}