[GRASS-SVN] r67403 - grass/trunk/vector/v.mkgrid

svn_grass at osgeo.org svn_grass at osgeo.org
Mon Dec 28 03:18:26 PST 2015


Author: neteler
Date: 2015-12-28 03:18:26 -0800 (Mon, 28 Dec 2015)
New Revision: 67403

Modified:
   grass/trunk/vector/v.mkgrid/main.c
Log:
v.mkgrid: fix tables of the output differ depending on the grid size (patch proposed by Michel Wortmann, pik-potsdam.de)

Modified: grass/trunk/vector/v.mkgrid/main.c
===================================================================
--- grass/trunk/vector/v.mkgrid/main.c	2015-12-28 11:11:35 UTC (rev 67402)
+++ grass/trunk/vector/v.mkgrid/main.c	2015-12-28 11:18:26 UTC (rev 67403)
@@ -451,7 +451,7 @@
 		    }
 		    else {
 		        sprintf(buf, "( %d, %d, %d )",
-			        attCount + 1, i + 1, j + 1);
+			        attCount + 1, grid_info.num_rows - i, j + 1);
 		    }
 		    if (db_append_string(&sql, buf) != DB_OK)
 		        G_fatal_error(_("Unable to fill attribute table"));



More information about the grass-commit mailing list