Pārlūkot izejas kodu

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 6 gadi atpakaļ
vecāks
revīzija
993c0ded22
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  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) {