Explorar el Código

r.in.gdal: message cosmetics (sync'ed with develbr6)

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@31194 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa hace 17 años
padre
commit
809fbfe045
Se han modificado 1 ficheros con 7 adiciones y 2 borrados
  1. 7 2
      raster/r.in.gdal/main.c

+ 7 - 2
raster/r.in.gdal/main.c

@@ -483,6 +483,7 @@ int main (int argc, char *argv[])
 	        sprintf( szBandName, "%s.%d", output, nBand);
 
             ImportBand( hBand, szBandName, &ref );
+
             if (title)
                 G_put_cell_title (szBandName, title);
         }
@@ -936,7 +937,7 @@ static void ImportBand( GDALRasterBandH hBand, const char *output,
            /* found 0..255 data: we set to grey scale: */
            struct Colors    colors;
         
-           G_debug (1, "Setting grey color table for %s (8bit, full range)", output );
+           G_verbose_message (_("Setting grey color table for <%s> (8bit, full range)"), output);
 
            G_init_colors (&colors);
            G_make_grey_scale_colors (&colors, 0, 255); /* full range */
@@ -949,7 +950,7 @@ static void ImportBand( GDALRasterBandH hBand, const char *output,
            struct Range     range;
            CELL             min, max;
         
-           G_debug (1, "Setting grey color table for %s (16bit, image range)", output );
+           G_verbose_message (_("Setting grey color table for <%s> (16bit, image range)"), output );
            G_read_range( (char *) output, G_mapset(), &range) ;
            G_get_range_min_max (&range, &min, &max);
 
@@ -958,5 +959,9 @@ static void ImportBand( GDALRasterBandH hBand, const char *output,
            G_write_colors( (char *) output, G_mapset(), &colors);
         }
     }
+
+    G_message(_("<%s> created"), output);
+
+    return;
 }