<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">Hi Markus, sorry so late. Here is my diff of v.mkgrid/main.c<div><br></div><div><div style="margin: 0px; font-size: 14px; font-family: Menlo;"><div style="margin: 0px;">diff --git a/vector/v.mkgrid/main.c b/vector/v.mkgrid/main.c</div><div style="margin: 0px;">index db733fd..5004fa0 100644</div><div style="margin: 0px;">--- a/vector/v.mkgrid/main.c</div><div style="margin: 0px;">+++ b/vector/v.mkgrid/main.c</div><div style="margin: 0px;">@@ -451,7 +451,7 @@ int main(int argc, char *argv[])</div><div style="margin: 0px;">                    }</div><div style="margin: 0px;">                    else {</div><div style="margin: 0px;">                        sprintf(buf, "( %d, %d, %d )",</div><div style="margin: 0px;">-                               attCount + 1, i + 1, j + 1);</div><div style="margin: 0px;">+                              attCount + 1, grid_info.num_rows - i, j + 1);</div><div style="margin: 0px;">                    }</div><div style="margin: 0px;">                    if (db_append_string(&sql, buf) != DB_OK)</div><div style="margin: 0px;">                        G_fatal_error(_("Unable to fill attribute table"));</div><div style="margin: 0px;"><br></div></div><div style="margin: 0px; font-size: 14px; font-family: Menlo;"><br></div><div style="margin: 0px;">It’s just this single line that is changed.</div><div style="margin: 0px;">Regards,</div><div style="margin: 0px;">Michel</div><div style="margin: 0px;"><br></div><div><span style="font-family: Helvetica; font-size: 12px;"><br></span></div><div><div>On 28 Nov 2015, at 18:15, Markus Neteler <<a href="mailto:neteler@osgeo.org">neteler@osgeo.org</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">On Sat, Nov 28, 2015 at 11:24 AM, Michel Wortmann<br><<a href="mailto:wortmann@pik-potsdam.de">wortmann@pik-potsdam.de</a>> wrote:<br><blockquote type="cite">The magical number 27 comes from the fact that it puts letters into rown and<br>coln and the alphabet is exhausted after 27 (although I wonder why the<br>condition is && and not ||?). The inconsistency is just related to the<br>counting of the row, i.e. the second argument to sprintf() in the else<br>statement. So all thats needed is to replace the i + 1 with<br>grid_info.num_rows - i.<br></blockquote><br>Can you please send a diff?<br><br>Markus<br></blockquote></div><br></div></body></html>