[GRASS-SVN] r72255 - grass/trunk/raster/r.in.gdal

svn_grass at osgeo.org svn_grass at osgeo.org
Mon Feb 19 11:54:10 PST 2018


Author: martinl
Date: 2018-02-19 11:54:10 -0800 (Mon, 19 Feb 2018)
New Revision: 72255

Modified:
   grass/trunk/raster/r.in.gdal/proj.c
Log:
r.in.gdal: print only proj comparision when -j flag is given (r.in.gdal -j is mostly used in scripts)

Modified: grass/trunk/raster/r.in.gdal/proj.c
===================================================================
--- grass/trunk/raster/r.in.gdal/proj.c	2018-02-18 18:59:08 UTC (rev 72254)
+++ grass/trunk/raster/r.in.gdal/proj.c	2018-02-19 19:54:10 UTC (rev 72255)
@@ -254,14 +254,16 @@
 				proj_units->value[i_value]);
 		}
 	    }
-	    strcat(error_msg,
-		   _("\nIn case of no significant differences in the projection definitions,"
-		     " use the -o flag to ignore them and use"
-		     " current location definition.\n"));
-	    strcat(error_msg,
-		   _("Consider generating a new location from the input dataset using "
-		    "the 'location' parameter.\n"));
-
+            if (!check_only) {
+                strcat(error_msg,
+                       _("\nIn case of no significant differences in the projection definitions,"
+                         " use the -o flag to ignore them and use"
+                         " current location definition.\n"));
+                strcat(error_msg,
+                       _("Consider generating a new location from the input dataset using "
+                         "the 'location' parameter.\n"));
+            }
+            
 	    if (check_only)
 		msg_fn = G_warning;
 	    else



More information about the grass-commit mailing list