[GRASS-SVN] r40863 - grass/trunk/raster/r.info
svn_grass at osgeo.org
svn_grass at osgeo.org
Mon Feb 8 06:25:25 EST 2010
Author: hamish
Date: 2010-02-08 06:25:23 -0500 (Mon, 08 Feb 2010)
New Revision: 40863
Modified:
grass/trunk/raster/r.info/main.c
Log:
show units and vertical datum if either exist
Modified: grass/trunk/raster/r.info/main.c
===================================================================
--- grass/trunk/raster/r.info/main.c 2010-02-08 08:27:43 UTC (rev 40862)
+++ grass/trunk/raster/r.info/main.c 2010-02-08 11:25:23 UTC (rev 40863)
@@ -187,9 +187,9 @@
/* For now hide these unless they exist to keep the noise low. In
* future when the two are used more widely they can be printed
* along with the standard set. */
- if (units && vdatum)
+ if (units || vdatum)
compose_line(out, " Data Units: %-20.20s Vertical datum: %s",
- units, vdatum);
+ units ? units : "(none)", vdatum ? vdatum : "(none)");
{
compose_line(out, " Rows: %d", cellhd.rows);
More information about the grass-commit
mailing list