浏览代码

v.in.ascii: user likely expectes number of rows used (#108)

Data rows here are the non-ignored rows, i.e., rows not skipped by skip (including cases when skip is used as an offset rather than skipping a header) and rows not ignored as comments (starting with hash). "data rows" seems quite close to what is expected by user importing data and not misleading at the same time like "non-ignored rows".
Vaclav Petras 5 年之前
父节点
当前提交
993c0ded22
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      vector/v.in.ascii/main.c

+ 1 - 1
vector/v.in.ascii/main.c

@@ -290,7 +290,7 @@ int main(int argc, char *argv[])
 	   G_message(_("Number of columns: %d"), ncols);
         }
 
-        G_message(_("Number of rows: %d"), nrows);
+        G_message(_("Number of data rows: %d"), nrows - skip_lines);
         
 	/* check column numbers */
 	if (xcol >= minncols) {