Переглянути джерело

d.grid: attempt to demystify user msgs (but see trac https://trac.osgeo.org/grass/ticket/2520)

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@63934 15284696-431f-4ddb-bdfa-cd5b030d7da7
Markus Neteler 10 роки тому
батько
коміт
b9958fd4ab
2 змінених файлів з 4 додано та 4 видалено
  1. 3 3
      display/d.grid/main.c
  2. 1 1
      display/d.grid/plot.c

+ 3 - 3
display/d.grid/main.c

@@ -167,9 +167,9 @@ int main(int argc, char **argv)
     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 @@ int main(int argc, char **argv)
     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;

+ 1 - 1
display/d.grid/plot.c

@@ -307,7 +307,7 @@ int plot_geogrid(double size, struct pj_info info_in, struct pj_info info_out,
 
     /* 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;