[GRASS-dev] Re: [GRASS GIS] #885: WinGrass: displaying
r.external-linked raster data not working
GRASS GIS
trac at osgeo.org
Fri Jan 22 01:56:12 EST 2010
#885: WinGrass: displaying r.external-linked raster data not working
------------------------------+---------------------------------------------
Reporter: hellik | Owner: grass-dev at lists.osgeo.org
Type: defect | Status: new
Priority: critical | Milestone: 6.4.0
Component: Display | Version: svn-releasebranch64
Resolution: | Keywords: r.external, WinGrass
Platform: MSWindows Vista | Cpu: x86-32
------------------------------+---------------------------------------------
Comment (by glynn):
Replying to [comment:10 neteler]:
> Done so - see attached diff. I am now stuck with these compile error:
{{{
gdal.c: In function ‘G_create_gdal_link’:
gdal.c:366: warning: implicit declaration of function ‘G__init’
gdal.c:393: error: ‘struct G__’ has no member named ‘nbytes’
}}}
`R__init()` is the equivalent of `G__gisinit()` for the raster library; it
shouldn't be necessary in 6.x.
The 6.x equivalent of `R__.nbytes` is the static variable NBYTES in
opencell.c, which is set by `G_set_cell_format()`. In 6.x, it isn't
possible to get at this setting from gdal.c.
I'd suggest sync'ing any changes to the functions which are already in 6.x
(i.e. `G_get_gdal_link()`, `G_close_gdal_link()`, and
`G_gdal_raster_IO()`) to ensure that linked maps are compatible between
the two versions, and not bothering about the write support (which won't
work without also sync'ing the corresponding changes to `G_open_*_new()`
and `G_put_*_row()`, which is probably unrealistic given the divergence
between 6.x and 7.0 in the raster code).
--
Ticket URL: <http://trac.osgeo.org/grass/ticket/885#comment:12>
GRASS GIS <http://grass.osgeo.org>
More information about the grass-dev
mailing list