Bug report #4929

v.distance needs to be fixed

Added by Giovanni Manghi about 11 years ago. Updated almost 11 years ago.

Assignee:Paolo Cavallini
Affected QGIS version:master Regression?:No
Operating System: Easy fix?:No
Pull Request or Patch supplied:No Resolution:
Crashes QGIS or corrupts data:No Copied to github as #:14730


When using the v.distance module the user is provided with a "(optional) column to read labels" parameter.

It turns that this parameter ("to_column") must be a varchar() column of the "to=" map, but if such column does not exist (or it is not selected) then the module fails

C:\\>v.distance [email protected] from_layer=1 [email protected] to_type=line to_l
ayer=1 upload=dist to_column= column=dis dmax=-1 dmin=-1

GRASS_INFO_ERROR(3352,1): Column <> not found in table <ferro>

so in the QGIS interface/console it is not optional at all.

In the native GRASS GUI the module work as expected when no "to_column" is chosen

v.distance [email protected] [email protected] to_type=line,area upload=dist column=dis

and still works when it is optionally chosen

@v.distance [email protected] [email protected] to_type=line,area upload=dist column=dis to_column=ciao

Associated revisions

Revision 9a9ab73b
Added by Radim Blazek almost 11 years ago

dont add empty field to options, fixes #4929


#1 Updated by Radim Blazek almost 11 years ago

  • Status changed from Open to Closed

Also available in: Atom PDF