Bug report #4929

v.distance needs to be fixed

Added by Giovanni Manghi over 7 years ago. Updated over 7 years ago.

Status:Closed
Priority:Normal
Assignee:Paolo Cavallini
Category:GRASS
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

Description

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>
GRASS_INFO_END(3352,1)

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 over 7 years ago

dont add empty field to options, fixes #4929

History

#1 Updated by Radim Blazek over 7 years ago

  • Status changed from Open to Closed

Also available in: Atom PDF