[GRASS-SVN] r58500 - grass/trunk/raster/r.info

svn_grass at osgeo.org svn_grass at osgeo.org
Fri Dec 20 14:09:25 PST 2013


Author: neteler
Date: 2013-12-20 14:09:25 -0800 (Fri, 20 Dec 2013)
New Revision: 58500

Modified:
   grass/trunk/raster/r.info/main.c
Log:
r.info: also print source1,source2,description fields in extended metadata printing

Modified: grass/trunk/raster/r.info/main.c
===================================================================
--- grass/trunk/raster/r.info/main.c	2013-12-20 17:52:42 UTC (rev 58499)
+++ grass/trunk/raster/r.info/main.c	2013-12-20 22:09:25 UTC (rev 58500)
@@ -357,6 +357,9 @@
 
 	    fprintf(out, "units=%s\n", units ? units : "\"none\"");
 	    fprintf(out, "vertical_datum=%s\n", vdatum ? vdatum : "\"none\"");
+	    fprintf(out, "source1=\"%s\"\n", hist_ok ? Rast_get_history(&hist, HIST_DATSRC_1) : "\"none\"");
+	    fprintf(out, "source2=\"%s\"\n", hist_ok ? Rast_get_history(&hist, HIST_DATSRC_2) : "\"none\"");
+	    fprintf(out, "description=\"%s\"\n", hist_ok ? Rast_get_history(&hist, HIST_KEYWRD) : "\"none\"");
 
 	    if (time_ok && (first_time_ok || second_time_ok)) {
 



More information about the grass-commit mailing list