Displaying both maps or r.univar gives vastly different results.
This corrupted output is not restricted to r.mapcalc but seems to be
true for all raster modules.
grass7 updated today, no changes in my local copy, two different
independent systems.
I know rasterlib in grass7 is work in progress, but I just wanted to
mention it, also ask if someone else observed this problem.
Displaying both maps or r.univar gives vastly different results.
This corrupted output is not restricted to r.mapcalc but seems to be
true for all raster modules.
grass7 updated today, no changes in my local copy, two different
independent systems.
I know rasterlib in grass7 is work in progress, but I just wanted to
mention it, also ask if someone else observed this problem.
Displaying both maps or r.univar gives vastly different results.
This corrupted output is not restricted to r.mapcalc but seems to be
true for all raster modules.
grass7 updated today, no changes in my local copy, two different
independent systems.
I know rasterlib in grass7 is work in progress, but I just wanted to
mention it, also ask if someone else observed this problem.
very wild guess - probably because Rast__init() is not called anywhere?
Displaying both maps or r.univar gives vastly different results.
This corrupted output is not restricted to r.mapcalc but seems to be
true for all raster modules.
grass7 updated today, no changes in my local copy, two different
independent systems.
I know rasterlib in grass7 is work in progress, but I just wanted to
mention it, also ask if someone else observed this problem.
very wild guess - probably because Rast__init() is not called anywhere?
I guess you probably know best about Rast__init() and when and where it
is supposed to be called I've never heard of that function before...
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.
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.
>>> 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.
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.
It's a long stretch but what Rast_init() does may be in principle
similar to what does dig_init_portable() in the vector libs.
Initialisating of the raster libs in library instead of in module may
not be much of a time penalty since you're using static int initialized.
BTW, can a system with a byte order different from the byte order of the
original system read grass raster maps created on the original system?
> 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.
>
It's a long stretch but what Rast_init() does may be in principle
similar to what does dig_init_portable() in the vector libs.
Initialisating of the raster libs in library instead of in module may
not be much of a time penalty since you're using static int initialized.
BTW, can a system with a byte order different from the byte order of the
original system read grass raster maps created on the original system?
The core raster and vector file formats are portable. There are a few
instances where auxiliary files under cell_misc use platform-specific
formats, e.g. the FFT data generated by i.fft and read by i.fft (this
doesn't apply to 7.0, where the FFT data is stored as raster maps
rather than auxiliary files).
> >>> 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'll look into doing one-shot initialisation within the raster
library.
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.
It's a long stretch but what Rast_init() does may be in principle
similar to what does dig_init_portable() in the vector libs.
Initialisating of the raster libs in library instead of in module may
not be much of a time penalty since you're using static int initialized.
BTW, can a system with a byte order different from the byte order of the
original system read grass raster maps created on the original system?
The core raster and vector file formats are portable. There are a few
instances where auxiliary files under cell_misc use platform-specific
formats, e.g. the FFT data generated by i.fft and read by i.fft (this
doesn't apply to 7.0, where the FFT data is stored as raster maps
rather than auxiliary files).
Thanks for the info. I admit I am too lazy to read the relevant code
(because I don't know where it is).
Getting more technical: does it make sense to port rasterIO ideas to
vectorIO or vice versa?
On Wed, Jul 15, 2009 at 10:55 PM, Markus
Metz<markus.metz.giswork@googlemail.com> wrote:
...
Getting more technical: does it make sense to port rasterIO ideas to
vectorIO or vice versa?
(Un)related to this: I spoke to Gilberto Camara last week at the
OGRS2009 conference in Nantes (www.ogrs2009.org) about the
pros and cons of replacing the GRASS raster library with Terralib [1].
He promised to check with his engineers, maybe there is some
interesting advantage. To be studied...
I spoke to Gilberto Camara last week at the
OGRS2009 conference in Nantes (www.ogrs2009.org) about the
pros and cons of replacing the GRASS raster library with Terralib [1].
He promised to check with his engineers, maybe there is some
interesting advantage. To be studied...
IMHO, makes sense only if you get a dedicated grass developer adjusting
terralib to grass standards, otherwise it's only trouble. Plugging it in
as is will most probably not work.