[GRASS-dev] GRASS7 rasterlib broken?
Glynn Clements
glynn at gclements.plus.com
Wed Jul 15 15:02:18 EDT 2009
Markus Metz wrote:
> >>> Anyway there are many modules which needs Rast_init() (or
> >>> Rast_init_all()).
> >>>
> >> Could it be done in the library to avoid the modification of all raster modules?
> >>
> >
> > I am afraid that it's not possible (please correct me). The library
> > has been initialized by G_gisinit(). Currently G_gisinit() initializes
> > only gislib and rasterlib need to be initialized separately.
> >
> Sounds like in grass6, the rasterlib equivalent is initialized by
> G_gisinit(). Is it really necessary to initialize rasterlib, no other
> possibility? If yes, can't that be done by e.g. Rast_open_old/new?
> Correct me if I'm wrong, but apart from gislib and rasterlib, no other
> standard lib needs to be initialized? At least there is nothing like
> Db_init() or Display_init() or Vect_init(). Modules currently rely on
> G_gisinit() to provide all the stuff they need.
Splitting libgis into libgis and libraster means splitting G_gisinit()
into G_gisinit() and Rast_init(). Obviously, if you split the function
in two, any calls to the function also need to be split.
I'll look into doing one-shot initialisation within the raster
library.
--
Glynn Clements <glynn at gclements.plus.com>
More information about the grass-dev
mailing list