[GRASS-SVN] r29840 - grass/trunk/display/d.info
svn_grass at osgeo.org
svn_grass at osgeo.org
Fri Jan 25 16:54:49 EST 2008
Author: neteler
Date: 2008-01-25 16:54:49 -0500 (Fri, 25 Jan 2008)
New Revision: 29840
Modified:
grass/trunk/display/d.info/description.html
grass/trunk/display/d.info/main.c
Log:
also output resolution
Modified: grass/trunk/display/d.info/description.html
===================================================================
--- grass/trunk/display/d.info/description.html 2008-01-25 21:36:13 UTC (rev 29839)
+++ grass/trunk/display/d.info/description.html 2008-01-25 21:54:49 UTC (rev 29840)
@@ -4,11 +4,12 @@
<H2>NOTES</H2>
-Units are screen pixels.<BR>
+Units are screen pixels (except for <em>-g</em> flag where map units
+are used).<BR>
Where two numbers are given the format is: width, height.<BR>
Where four numbers are given the format is: left, right, top, bottom.
<BR><BR>
-Note GRASS display pixel coordinates are measured from the top left.
+Note: GRASS display pixel coordinates are measured from the top left.
<P>
<BR>
Modified: grass/trunk/display/d.info/main.c
===================================================================
--- grass/trunk/display/d.info/main.c 2008-01-25 21:36:13 UTC (rev 29839)
+++ grass/trunk/display/d.info/main.c 2008-01-25 21:54:49 UTC (rev 29840)
@@ -52,7 +52,7 @@
gflag = G_define_flag();
gflag->key = 'g';
- gflag->description = _("Display screen rectangle coordinates (west, east, north, south)");
+ gflag->description = _("Display screen rectangle coordinates and resolution (west, east, north, south, ewres, nsres)");
cflag = G_define_flag();
cflag->key = 'c';
@@ -136,6 +136,8 @@
fprintf(stdout, "e=%f\n", window.east);
fprintf(stdout, "n=%f\n", window.north);
fprintf(stdout, "s=%f\n", window.south);
+ fprintf(stdout, "ewres=%f\n", window.ew_res);
+ fprintf(stdout, "nsres=%f\n", window.ns_res);
}
More information about the grass-commit
mailing list