[GRASS-user] Building a new module

Glynn Clements glynn at gclements.plus.com
Fri Mar 28 15:29:34 EDT 2008


roberto caselli wrote:

> I have to build a new module for GRASS, but I have some doubts about
> what the things I have to do.
> 
> First of all, i'd need some data structure like graphs, union finds
> and dynamic trees. Are these structure included in GRASS?

Generally, you need to provide your own data structures and associated
algorithms. There is a btree library, but that's about it.

However, as GRASS is licensed under the GPL (version 2 or later), you
can use code from other GPL or GPL-compatible (LGPL, MIT, new BSD
licences) software.

> For a beginner like me a guide that explains the building of a module
> (or a pattern) would be very very helpful. Could you suggest me
> something to ease my work?

The usual approach is to find a similar module and use that as a
template.

-- 
Glynn Clements <glynn at gclements.plus.com>


More information about the grass-user mailing list