Skip to content

Commit 23b5a22

Browse files
netelerpetrasovaa
andauthored
v.surf.idw: improve user messages (OSGeo#6397)
Co-authored-by: Anna Petrasova <[email protected]>
1 parent fe8daa2 commit 23b5a22

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

vector/v.surf.idw/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ int main(int argc, char *argv[])
165165
}
166166
}
167167

168-
/* read the elevation points from the input sites file */
168+
/* read the vector points from the input map */
169169
read_sites(parm.input->answer, parm.dfield->answer, parm.col->answer,
170170
flag.noindex->answer);
171171

vector/v.surf.idw/read_sites.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,13 +58,14 @@ void read_sites(const char *name, const char *field_name, const char *col,
5858
G_fatal_error(_("Unable to open database <%s> by driver <%s>"),
5959
Fi->database, Fi->driver);
6060

61+
G_verbose_message("Using column <%s> for interpolation...", col);
6162
nrec = db_select_CatValArray(Driver, Fi->table, Fi->key, col, NULL,
6263
&cvarr);
6364
G_debug(3, "nrec = %d", nrec);
6465

6566
ctype = cvarr.ctype;
6667
if (ctype != DB_C_TYPE_INT && ctype != DB_C_TYPE_DOUBLE)
67-
G_fatal_error(_("Column type not supported"));
68+
G_fatal_error(_("Column type of column <%s> is not numeric"), col);
6869

6970
if (nrec < 0)
7071
G_fatal_error(_("Unable to select data from table"));

0 commit comments

Comments
 (0)