[GRASS-user] compiling an addon in grass 7

Markus Neteler neteler at osgeo.org
Tue Jun 2 05:05:19 PDT 2015


On Tue, Jun 2, 2015 at 1:35 PM, shashank khare <skhare at hotmail.com> wrote:
> I tried compiling r.refine with grass 7 but gcc could not find definition of
> Site_head struct. I looked into it and figured out that grass/site.h is
> missing. Where has it gone?

It has been eliminated many years back in the update to GRASS GIS 7
(or even 6, don't remember).

> I even downloaded the entire source code of
> 7.0.0 but even that does not have any file which contains definition of
> Site_head struct. Can someone enlighten me regarding "site" data structure.
> I believe site is a way of storing point type data.

Nowadays the vector library is used for that:

http://grass.osgeo.org/programming7/vectorlib.html

You may want to look at the source code of point related modules (see
keyword index of manual).

Markus


More information about the grass-user mailing list