[GRASS-dev] Re: [GRASS GIS] #885: WinGrass: displaying
r.external-linked raster data not working
GRASS GIS
trac at osgeo.org
Sat Jan 23 08:30:10 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 hellik):
Replying to [comment:11 glynn]:
[...]
>
> The following change makes linked maps work with the GDAL library from
OSGeo4W:
>
{{{
> {{{
> Index: gdal.c
> ===================================================================
> --- gdal.c (revision 40542)
> +++ gdal.c (working copy)
> @@ -102,11 +102,19 @@
> {
> load_library();
>
> +# ifdef _WIN32
> + pGDALAllRegister = get_symbol("_GDALAllRegister at 0");
> + pGDALOpen = get_symbol("_GDALOpen at 8");
> + pGDALClose = get_symbol("_GDALClose at 4");
> + pGDALGetRasterBand = get_symbol("_GDALGetRasterBand at 8");
> + pGDALRasterIO = get_symbol("_GDALRasterIO at 48");
> +#else
> pGDALAllRegister = get_symbol("GDALAllRegister");
> pGDALOpen = get_symbol("GDALOpen");
> pGDALClose = get_symbol("GDALClose");
> pGDALGetRasterBand = get_symbol("GDALGetRasterBand");
> pGDALRasterIO = get_symbol("GDALRasterIO");
> +#endif
> }
>
> #else /* GDAL_DYNAMIC */
> }}}
}}}
I've tried above in a fresh Grass64svn, the original error message "Error:
Unable to locate symbol <GDALAllRegister>" dissapears, but d.rast is still
crashing
{{{
GRASS 6.4.0svn (nc_spm_08):c:/ > d.rast -o map=TestLinkRaster
WARNUNG: c:/OSGeo4W/apps/grass/grass-6.4.0svn/etc/fontcap: Keine
Zeichensatz-Definitionsdatei gefunden
PNG: GRASS_TRUECOLOR status: FALSE
PNG: collecting to file: map.png,
GRASS_WIDTH=640, GRASS_HEIGHT=480
D2/3: G__read_Cell_head
D2/3: G__read_Cell_head_array
D3/3: region item: proj: 99
D3/3: region item: zone: 0
D3/3: region item: north: 228500
D3/3: region item: south: 215000
D3/3: region item: east: 645000
D3/3: region item: west: 630000
D3/3: region item: cols: 1500
D3/3: region item: rows: 1350
D3/3: region item: e-w resol: 10
D3/3: region item: n-s resol: 10
D3/3: region item: top: 1
D3/3: region item: bottom: 0
D3/3: region item: cols3: 1500
D3/3: region item: rows3: 1350
D3/3: region item: depths: 1
D3/3: region item: e-w resol3: 10
D3/3: region item: n-s resol3: 10
D3/3: region item: t-b resol: 1
D2/3: G__read_Cell_head
D2/3: G__read_Cell_head_array
D3/3: region item: proj: 99
D3/3: region item: zone: 0
D3/3: region item: north: 228500
D3/3: region item: south: 215000
D3/3: region item: east: 645000
D3/3: region item: west: 630000
D3/3: region item: cols: 1500
D3/3: region item: rows: 1350
D3/3: region item: e-w resol: 10
D3/3: region item: n-s resol: 10
D3/3: region item: format: -1
D3/3: region item: compressed: 0
D3/3: create window mapping (1500 columns)
}}}
--
Ticket URL: <http://trac.osgeo.org/grass/ticket/885#comment:13>
GRASS GIS <http://grass.osgeo.org>
More information about the grass-dev
mailing list