[GRASS-SVN] r29513 - grass/trunk/raster/r.in.gdal
svn_grass at osgeo.org
svn_grass at osgeo.org
Wed Dec 26 15:44:18 EST 2007
Author: martinl
Date: 2007-12-26 15:44:17 -0500 (Wed, 26 Dec 2007)
New Revision: 29513
Modified:
grass/trunk/raster/r.in.gdal/main.c
Log:
r.in.gdal: Do not ingnore 'band' parameter, reported by Ivan Shmakov
Modified: grass/trunk/raster/r.in.gdal/main.c
===================================================================
--- grass/trunk/raster/r.in.gdal/main.c 2007-12-26 20:39:53 UTC (rev 29512)
+++ grass/trunk/raster/r.in.gdal/main.c 2007-12-26 20:44:17 UTC (rev 29513)
@@ -394,7 +394,7 @@
if( parm.band->answer != NULL )
nBand = atoi(parm.band->answer);
- hBand = GDALGetRasterBand(hDS,1);
+ hBand = GDALGetRasterBand(hDS, nBand);
if( hBand == NULL )
{
G_fatal_error(_("Selected band (%d) does not exist"),
More information about the grass-commit
mailing list