[GRASS-SVN] r63935 - grass/branches/releasebranch_7_0/display/d.grid

svn_grass at osgeo.org svn_grass at osgeo.org
Fri Jan 2 10:32:53 PST 2015


Author: neteler
Date: 2015-01-02 10:32:53 -0800 (Fri, 02 Jan 2015)
New Revision: 63935

Modified:
   grass/branches/releasebranch_7_0/display/d.grid/main.c
   grass/branches/releasebranch_7_0/display/d.grid/plot.c
Log:
d.grid: attempt to demystify user msgs (but see trac #2520) (trunk, r63934)

Modified: grass/branches/releasebranch_7_0/display/d.grid/main.c
===================================================================
--- grass/branches/releasebranch_7_0/display/d.grid/main.c	2015-01-02 18:32:23 UTC (rev 63934)
+++ grass/branches/releasebranch_7_0/display/d.grid/main.c	2015-01-02 18:32:53 UTC (rev 63935)
@@ -167,9 +167,9 @@
     if (wgs84->answer)
 	geogrid->answer = 1;	/* -w implies -g */
     if (geogrid->answer && G_projection() == PROJECTION_LL)
-	G_fatal_error(_("Geo-Grid option is not available for LL projection"));
+	G_fatal_error(_("Geo-grid option not available for LL projection, use without -g/-w"));
     if (geogrid->answer && G_projection() == PROJECTION_XY)
-	G_fatal_error(_("Geo-Grid option is not available for XY projection"));
+	G_fatal_error(_("Geo-grid option not available for XY projection, use without -g/-w"));
 
     if (notext->answer)
 	do_text = FALSE;
@@ -179,7 +179,7 @@
     if (lwidth->answer) {
 	line_width = atoi(lwidth->answer);
 	if(line_width < 0 || line_width > 1e3)
-	    G_fatal_error("Invalid line width.");
+	    G_fatal_error("Invalid line width");
     }
     else
 	line_width = 0;

Modified: grass/branches/releasebranch_7_0/display/d.grid/plot.c
===================================================================
--- grass/branches/releasebranch_7_0/display/d.grid/plot.c	2015-01-02 18:32:23 UTC (rev 63934)
+++ grass/branches/releasebranch_7_0/display/d.grid/plot.c	2015-01-02 18:32:53 UTC (rev 63935)
@@ -307,7 +307,7 @@
 
     /* draw marks not grid lines */
     if (mark_type != MARK_GRID) {
-	G_warning("Geogrid marks not yet implemented");
+	G_warning(_("Geo-grid option only available for LL projection, use without -g/-w"));
 #ifdef TODO
 	e1 = combine above;
 	n1 = combine above;



More information about the grass-commit mailing list